[cfe-dev] Parsing VC++ headers with tool/libtooling

Reid Kleckner via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 28 12:31:36 PDT 2015


On Wed, Oct 28, 2015 at 11:25 AM, Daniel Dilts via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Using both --driver-mode=cl and -fms-compatibility-version=19 I still get
> the errors about invalid token in macro parameter list.
>

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.

Furthermore, I don't understand why clang is rejecting this macro
definition. Clang accepts this on Linux:
#define _mm256_set_m128i(/* __m128i */ hi, /* __m128i */ lo) \
  (a + b)
int main() {
  int a, b;
  _mm256_set_m128i(a, b);
}

There doesn't seem to be MS-specific behavior around '#define
foo(/*comment*/ argname)', so far as I can tell.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151028/db0a793e/attachment.html>


More information about the cfe-dev mailing list