[llvm-bugs] [Bug 25567] New: no support for a space in __attribute__ ((analyzer_noreturn)) (maybe others?)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 18 14:31:36 PST 2015


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: kremenek at apple.com
          Reporter: cliffyapp at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151118/780b741b/attachment.html>


More information about the llvm-bugs mailing list