<html>
    <head>
      <base href="http://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 --- - VS2012 preprocessor string concatenation incompatibility"
   href="http://llvm.org/bugs/show_bug.cgi?id=18822">18822</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VS2012 preprocessor string concatenation incompatibility
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>ab@php.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The error happens when including several headers like winsock2.h or winnt.h,
but it's laying deeper in the header driverspecs.h . Here's a snippet from the
static analyzer approach could be found here
<a href="https://github.com/weltling/clang-php-checker/tree/win32_and_more">https://github.com/weltling/clang-php-checker/tree/win32_and_more</a>

In file included from C:\php-sdk\phpmaster\vc11\x64\php-src\win32\time.c:19:
In file included from C:\php-sdk\phpmaster\vc11\x64\php-src\win32/time.h:17:
In file included from C:\php-sdk\phpmaster\vc11\x64\php-src\main\php.h:34:
In file included from C:\php-sdk\phpmaster\vc11\x64\php-src\Zend\zend.h:42:
In file included from
C:\php-sdk\phpmaster\vc11\x64\php-src\Zend/zend_config.w32.h:38:
In file included from C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A\Include\winsock2.h:66:
In file included from C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A\Include\windows.h:155:
In file included from C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A\Include\windef.h:177:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\winnt.h:1202:1:
error: pasting formed '(__drv_nop', an invalid preprocessing token
__drv_functionClass(EXCEPTION_ROUTINE)
^
C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A\Include\driverspecs.h:358:3: note: expanded from macro
'__drv_functionClass'
                __drv_out(__drv_declspec("SAL_functionClass(\""#x"\")"))
                ^
C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A\Include\driverspecs.h:279:49: note: expanded from macro
'__drv_out'
        #define __drv_out(annotes) __post __$drv_group(##__drv_nop(annotes))

A simpler reproduce case, thanks to rnk from #llvm, is

11:41:41 PM) rnk: #define foo(x) puts(##x)
(11:41:41 PM) rnk: foo(y)</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>