Handle MS-style inline assembly in clang-modernize

Reid Kleckner rnk at google.com
Mon Nov 24 13:59:34 PST 2014


If Clang is configured without x86 backend support, there will be linker
errors here. I believe we have a wrapper called
InitializeAllRegisteredTargets() and some cmake way to link in all target
libraries. We could just do that.

It might also be better to make it so that tools can easily recover with a
partial AST in this situation. They won't be able to see if the inline asm
blob uses any parameters so any refactorings could possibly be broken, but
that was already the case for clang-modernize.

On Sun, Nov 23, 2014 at 9:47 PM, Nikola Smiljanic <popizdeh at gmail.com>
wrote:

> Some x86 system includes on windows have inline assembly that causes
> clang-modernize to fail.
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141124/2945b1b7/attachment.html>


More information about the cfe-commits mailing list