[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 19 00:36:19 PDT 2025
================
@@ -107,6 +113,10 @@ class AnalysisBasedWarnings {
// Issue warnings that require whole-translation-unit analysis.
void IssueWarnings(TranslationUnitDecl *D);
+ void RegisterVarDeclWarning(VarDecl *VD, PossiblyUnreachableDiag PUD);
+
+ void IssueWarningsForRegisteredVarDecl(VarDecl *VD);
----------------
zwuis wrote:
Same here, functions should start with a lowercase letter.
Ditto below (`EmitPossiblyUnreachableDiags`).
https://github.com/llvm/llvm-project/pull/163885
More information about the cfe-commits
mailing list