[cfe-dev] Invalid Use Diagnostic

Bill Wendling via cfe-dev cfe-dev at lists.llvm.org
Fri Sep 27 19:42:04 PDT 2019


That may do. Thanks!

On Fri, Sep 27, 2019 at 1:52 PM Eli Friedman <efriedma at quicinc.com> wrote:

> By “diagnostic”, you mean a -Wuninitialized warning?  That’s generated by
> clang::runUninitializedVariablesAnalysis.
>
>
>
> -Eli
>
>
>
> *From:* cfe-dev <cfe-dev-bounces at lists.llvm.org> *On Behalf Of *Bill
> Wendling via cfe-dev
> *Sent:* Friday, September 27, 2019 1:42 PM
> *To:* cfe-dev at lists.llvm.org Developers <cfe-dev at lists.llvm.org>
> *Subject:* [EXT] [cfe-dev] Invalid Use Diagnostic
>
>
>
> I'm currently working on asm goto with return values. For the first
> iteration, I want to limit the use of return values to the "normal" path.
> Therefore, I would like to issue a diagnostic if the use is in the
> "abnormal" path that doesn't first go through the "normal" code. I'm not
> very familiar with how clang determines such things. How can this be done?
>
>
>
> -bw
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190927/b374d560/attachment.html>


More information about the cfe-dev mailing list