https://llvm.org/bugs/show_bug.cgi?id=25567
Bug ID: 25567 Summary: no support for a space in __attribute__ ((analyzer_noreturn)) (maybe others?) Product: clang Version: 3.7 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Static Analyzer Assignee: kreme...@apple.com Reporter: cliffy...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified When specifying the attribute __attribute__((analyzer_noreturn)) for the compiler, adding a space between the attribute tag and the list: __attribute__ ((analyzer_noreturn)) ^ causes clang to ignore the attribute. Removing the space does work. The GNU documentation examples do not have a space, but the specification example in the documentation does: (https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Attribute-Syntax.html#Attribute-Syntax) "An attribute specifier is of the form __attribute__ ((attribute-list))" Would it be possible for clang to handle __attribute__ with and without the space after it? -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs