[PATCH] D63889: Check possible warnings on global initializers for reachability
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 16:43:26 PDT 2019
nickdesaulniers added inline comments.
================
Comment at: clang/include/clang/Sema/AnalysisBasedWarnings.h:95
+ void flushDiagnostics(SmallVector<clang::sema::PossiblyUnreachableDiag, 4>);
+
----------------
Methods should be UpperCamelCased.
================
Comment at: clang/include/clang/Sema/AnalysisBasedWarnings.h:112
+ void
+ emitPossiblyUnreachableDiags(AnalysisDeclContext &AC,
+ SmallVector<PossiblyUnreachableDiag, 4> PUDs);
----------------
UpperCamelCase
================
Comment at: clang/lib/Sema/SemaExpr.cpp:16672
+ FunctionScopes.back()->PossiblyUnreachableDiags.push_back(
+ clang::sema::PossiblyUnreachableDiag(PD, Loc, Stmts));
return true;
----------------
does this need the `clang::` qualifier?
================
Comment at: clang/lib/Sema/SemaExpr.cpp:16701
+ AnalysisWarnings.RegisterVarDeclWarning(
+ VD, clang::sema::PossiblyUnreachableDiag(PD, Loc, Stmts));
+ return true;
----------------
does this need `clang::`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63889/new/
https://reviews.llvm.org/D63889
More information about the cfe-commits
mailing list