<div dir="ltr">Hi, <div><br></div><div>I have a simple file containing some Microsoft style inline asm. I can compile this file with -fms-extensions. </div><div><br></div>clang++ -fms-extensions -c test.cpp<div><br><div>No problem for this.</div><div><br></div><div>But when I write a simple AST Matcher tool (foo.out) to parse this file, I got errors. </div><font face="monospace, monospace"><br>./foo.out test.cpp -- clang++ -fms-extensions -c test.cpp<br>test.cpp:19:3: error: MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>  __asm {<br>  ^<br>test.cpp:28:3: error: MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>  __asm mov a1, 2<br>  ^<br>2 errors generated.<br>Error while processing test.cpp.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">There are also some other problems when parsing test.cpp. For example if I #include <string>, I have to use -- clang++ -I<path-to-string> to identify the system header file path. I'm not sure what makes it different then the normal clang compile. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Best regards, </font></div><div><font face="arial, helvetica, sans-serif">Han</font></div></div>