We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64b365a commit 4ce7b0cCopy full SHA for 4ce7b0c
clang/lib/Sema/SemaExpr.cpp
@@ -20544,10 +20544,6 @@ void Sema::MarkDeclarationsReferencedInExpr(Expr *E,
20544
}
20545
20546
/// Emit a diagnostic when statements are reachable.
20547
-/// FIXME: check for reachability even in expressions for which we don't build a
20548
-/// CFG (eg, in the initializer of a global or in a constant expression).
20549
-/// For example,
20550
-/// namespace { auto *p = new double[3][false ? (1, 2) : 3]; }
20551
bool Sema::DiagIfReachable(SourceLocation Loc, ArrayRef<const Stmt *> Stmts,
20552
const PartialDiagnostic &PD) {
20553
// The initializer of a constexpr variable or of the first declaration of a
0 commit comments