Review Request 125684: fix-definite-loop-in-CppLanguageSupport_isFunctionLike

Jingqiang Zhang zh_jq at outlook.com
Sun Oct 18 08:08:51 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125684/
-----------------------------------------------------------

(Updated 十月 18, 2015, 8:08 a.m.)


Review request for KDevelop.


Changes
-------

fix typo


Repository: kdevelop


Description
-------

code like this:
```c
#define a b
#define b a
```
will lead to definite loop.

and stdio.h use this:
```c
/* Standard streams.  */
extern struct _IO_FILE *stdin;		/* Standard input stream.  */
extern struct _IO_FILE *stdout;		/* Standard output stream.  */
extern struct _IO_FILE *stderr;		/* Standard error output stream.  */
/* C89/C99 say they're macros.  Make them happy.  */
#define stdin stdin
#define stdout stdout
#define stderr stderr
```
will also lead to definite loop.


Diffs
-----

  languages/cpp/cpplanguagesupport.cpp afa2dc8 

Diff: https://git.reviewboard.kde.org/r/125684/diff/


Testing (updated)
-------

Compiled and tested


Thanks,

Jingqiang Zhang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20151018/d20086df/attachment.html>


More information about the KDevelop-devel mailing list