<div dir="ltr"><div>Source code for Clang is checked out of:</div><div><a href="http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_370/final">http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_370/final</a></div><div><a href="http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_370/final">http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_370/final</a></div><div><a href="http://llvm.org/svn/llvm-project/clang-tools-extra/tags/RELEASE_370/final">http://llvm.org/svn/llvm-project/clang-tools-extra/tags/RELEASE_370/final</a></div><div><br></div><div>I am using Visual Studio 2015 Enterprise.</div><div><br></div><div>clang-tidy that I have installed is:</div><div>D:\CMakeTest\src>clang-tidy --version<br>LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):<br>  LLVM version 3.8.0-r251293<br>  DEBUG build with assertions.<br>  Built Oct 26 2015 (10:01:02).<br>  Default target: i686-pc-windows-gnu<br>  Host CPU: sandybridge</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 12:31 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Wed, Oct 28, 2015 at 11:25 AM, Daniel Dilts via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Using both --driver-mode=cl and -fms-compatibility-version=19 I still get the errors about invalid token in macro parameter list.</div></blockquote><div><br></div></span><div>What version of clang and VS 2015 are you using? I've tried with clang-tidy and your sources, and I'm not able to reproduce this.</div><div><br></div><div>Furthermore, I don't understand why clang is rejecting this macro definition. Clang accepts this on Linux:</div><div><span><div>#define _mm256_set_m128i(/* __m128i */ hi, /* __m128i */ lo) \</div></span><div>  (a + b)</div><div>int main() {</div><div>  int a, b;</div><div>  _mm256_set_m128i(a, b);</div><div>}</div></div><div><br></div><div>There doesn't seem to be MS-specific behavior around '#define foo(/*comment*/ argname)', so far as I can tell.</div></div></div></div>
</blockquote></div><br></div>