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 f49f6b0 commit 729aa96Copy full SHA for 729aa96
clang/lib/Sema/SemaExpr.cpp
@@ -20567,10 +20567,6 @@ void Sema::MarkDeclarationsReferencedInExpr(Expr *E,
20567
}
20568
20569
/// Emit a diagnostic when statements are reachable.
20570
-/// FIXME: check for reachability even in expressions for which we don't build a
20571
-/// CFG (eg, in the initializer of a global or in a constant expression).
20572
-/// For example,
20573
-/// namespace { auto *p = new double[3][false ? (1, 2) : 3]; }
20574
bool Sema::DiagIfReachable(SourceLocation Loc, ArrayRef<const Stmt *> Stmts,
20575
const PartialDiagnostic &PD) {
20576
// The initializer of a constexpr variable or of the first declaration of a
0 commit comments