[cfe-dev] Invalid Use Diagnostic

Eli Friedman via cfe-dev cfe-dev at lists.llvm.org
Fri Sep 27 13:52:17 PDT 2019


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/cc3d59d2/attachment.html>


More information about the cfe-dev mailing list