<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - no support for a space in __attribute__ ((analyzer_noreturn)) (maybe others?)"
   href="https://llvm.org/bugs/show_bug.cgi?id=25567">25567</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>no support for a space in __attribute__ ((analyzer_noreturn)) (maybe others?)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cliffyapp@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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: 
(<a href="https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Attribute-Syntax.html#Attribute-Syntax">https://gcc.gnu.org/onlinedocs/gcc-5.2.0/gcc/Attribute-Syntax.html#Attribute-Syntax</a>)

"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?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>