[Bug 60512] Syntax parser can be fooled by #defines
Daniel Franke
daniel.franke at imbs.uni-luebeck.de
Tue Feb 8 16:37:05 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=60512
------- Additional Comments From daniel.franke imbs uni-luebeck de 2005-02-08 16:36 -------
here's another example (removed safeguards for simplicity):
-- bug.h --
#define BUG_ATTRIBUTES __attribute__ ((noreturn, format (printf, 1, 2)))
void bug(const char *fmt, ...) BUG_ATTRIBUTES;
--
-- bug.c --
#include "bug.h"
void bug(const char *fmt, ...) BUG_ATTRIBUTES { // <-- Syntax Error reported
}
--
More information about the KDevelop-devel
mailing list