<div dir="ltr">Quentin, is there a strategy for threading warning ids through the diagnostic reporting mechanism of the llvmcontext, or is that impractical?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 15, 2015 at 6:34 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping<br>
<div class="HOEnZb"><div class="h5"><br>
On 31 May 2015 at 20:05, Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>> wrote:<br>
> Clang folks,<br>
><br>
> I had a read around the reporting code in Clang and I have to say I'm<br>
> a bit lost...<br>
><br>
> In ARMAsmParser, we have warnings:<br>
><br>
>     if (ARMMCRegisterClasses[ARM::GPRRegClassID].contains(Reg))<br>
>         Warning(RegLoc, "register list not in ascending order");<br>
><br>
> When using inline asm, clang has the -Wno-inline-asm, which disables<br>
> those warnings. But when compiling assmebly files directly, that -W<br>
> directive doesn't work (intentionally).<br>
><br>
> I'd like to create a new -W flag, -Wasm-directives or something, which<br>
> will warn on architecture changing directives misuse.<br>
><br>
> DiagnosticsSemaKinds.td seems to have a large list of inline asm<br>
> warnings, but I need to use the Diag.Warn(..., ID) so that it can<br>
> suppress if the ID is disabled. Meanwhile, inside the ARMAsmParser,<br>
> the Warning function doesn't have an ID to suppress. So, even if I<br>
> create such a warning flag in Clang, how do I make it work inside the<br>
> assembly parser?<br>
><br>
> cheers,<br>
> --renato<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>