[cfe-dev] Parsing VC++ headers with tool/libtooling
Daniel Dilts via cfe-dev
cfe-dev at lists.llvm.org
Wed Oct 21 18:11:41 PDT 2015
I have a custom tool that uses libTooling. I am running the tool on
Windows. When I attempt to run the tool over my code I get many errors of
the following form:
2> In file included from C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\vector:6:
2> In file included from C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\xmemory:6:
2> In file included from C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\xmemory0:1015:
2> In file included from C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\intrin.h:24:
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:764:28: error: invalid token in macro parameter
list
2> #define _mm256_loadu2_m128(/* float const* */ hiaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:768:29: error: invalid token in macro parameter
list
2> #define _mm256_loadu2_m128d(/* double const* */ hiaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:772:29: error: invalid token in macro parameter
list
2> #define _mm256_loadu2_m128i(/* __m128i const* */ hiaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:782:29: error: invalid token in macro parameter
list
2> #define _mm256_storeu2_m128(/* float* */ hiaddr, /* float* */ loaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:790:30: error: invalid token in macro parameter
list
2> #define _mm256_storeu2_m128d(/* double* */ hiaddr, /* double* */
loaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:798:30: error: invalid token in macro parameter
list
2> #define _mm256_storeu2_m128i(/* __m128i* */ hiaddr, /* __m128i* */
loaddr, \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:1117:25: error: invalid token in macro
parameter list
2> #define _mm256_set_m128(/* __m128 */ hi, /* __m128 */ lo) \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:1120:26: error: invalid token in macro
parameter list
2> #define _mm256_set_m128d(/* __m128d */ hi, /* __m128d */ lo) \
2> ^
2> C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\include\immintrin.h:1123:26: error: invalid token in macro
parameter list
2> #define _mm256_set_m128i(/* __m128i */ hi, /* __m128i */ lo) \
2> ^
2> 9 errors generated.
Is there some way to get my tool to handle this gracefully? My
command-line for my tool looks like:
MyTool.exe -- -IC:/Path/To/Includes -DSOME_MACRO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151021/2463925d/attachment.html>
More information about the cfe-dev
mailing list