[cfe-dev] Parsing VC++ headers with tool/libtooling
Daniel Dilts via cfe-dev
cfe-dev at lists.llvm.org
Wed Oct 28 12:46:03 PDT 2015
Source code for Clang is checked out of:
http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_370/final
http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_370/final
http://llvm.org/svn/llvm-project/clang-tools-extra/tags/RELEASE_370/final
I am using Visual Studio 2015 Enterprise.
clang-tidy that I have installed is:
D:\CMakeTest\src>clang-tidy --version
LLVM (http://llvm.org/):
LLVM version 3.8.0-r251293
DEBUG build with assertions.
Built Oct 26 2015 (10:01:02).
Default target: i686-pc-windows-gnu
Host CPU: sandybridge
On Wed, Oct 28, 2015 at 12:31 PM, Reid Kleckner <rnk at google.com> wrote:
> 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/e1819b8c/attachment.html>
More information about the cfe-dev
mailing list