<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:nicolasweber@gmx.de" title="Nico Weber <nicolasweber@gmx.de>"> <span class="fn">Nico Weber</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang-format mangles a macro function named "and""
   href="https://bugs.llvm.org/show_bug.cgi?id=37200">bug 37200</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>nicolasweber@gmx.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang-format mangles a macro function named "and""
   href="https://bugs.llvm.org/show_bug.cgi?id=37200#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - clang-format mangles a macro function named "and""
   href="https://bugs.llvm.org/show_bug.cgi?id=37200">bug 37200</a>
              from <span class="vcard"><a class="email" href="mailto:nicolasweber@gmx.de" title="Nico Weber <nicolasweber@gmx.de>"> <span class="fn">Nico Weber</span></a>
</span></b>
        <pre>`and` is a keyword in C++, and using it as a macro name isn't supported.

$ out/gn/bin/clang -c test3.cc
test3.cc:1:9: error: C++ operator 'and' (aka '&&') used as a macro name
#define and(x, y) 4
        ^

$ out/gn/bin/clang-cl -c test3.cc -Wall
test3.cc(1,9): warning: C++ operator 'and' (aka '&&') used as a macro name
[-Wmicrosoft-cpp-macro]
#define and(x, y) 4
        ^</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>