[cfe-dev] libclang crash when parsing MS-style inline assembly

Kim Gräsman kim.grasman at gmail.com
Fri Nov 8 01:12:33 PST 2013


Hi Alp,

On Fri, Nov 8, 2013 at 8:01 AM, Alp Toker <alp at nuanti.com> wrote:
>
> Now that we've dealt with the underlying crash, we can start to look at
> how to handle this cleanly.
>
> I'd like to understand your requirements first..
>
> For your use cases, would it be acceptable to skip over the MS inline
> assembly without parsing it, ie. having a special mode that turns this
> into a soft error in parse-only tools?

For me, I think so.

We ran into this in IWYU [1], and I don't think inline assembly would
introduce a "use" of any significance...

I'm not sure what you mean by "soft error", but I think I'd just
ignore it completely rather than spewing diagnostics for things we
can't affect and don't really care about.

We don't use libclang, the problem is a little different there, as
they can't initialize the respective targets. Our current workaround
solves the problem for us.

Thanks!

- Kim

[1] https://code.google.com/p/include-what-you-use/



More information about the cfe-dev mailing list