================ @@ -347,8 +347,11 @@ const Stmt *ExplodedNode::getStmtForDiagnostics() const { return nullptr; } -const Stmt *ExplodedNode::getNextStmtForDiagnostics() const { +const Stmt *ExplodedNode::getNextStmtForDiagnostics(bool skipPurge) const { for (const ExplodedNode *N = getFirstSucc(); N; N = N->getFirstSucc()) { + if (skipPurge && N->getLocation().isPurgeKind()) { ---------------- Xazax-hun wrote:
Nit: we usually omit braces for single statement branches. https://github.com/llvm/llvm-project/pull/117863 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits