[clang] [WIP][analyzer] Refactor `ExplodedGraph::trim()` (PR #139939)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 06:38:13 PDT 2025
================
@@ -4096,7 +4096,8 @@ std::string ExprEngine::DumpGraph(bool trim, StringRef Filename) {
std::string ExprEngine::DumpGraph(ArrayRef<const ExplodedNode *> Nodes,
StringRef Filename) {
- std::unique_ptr<ExplodedGraph> TrimmedG(G.trim(Nodes));
+ TrimGraphWorklist Worklist{Nodes};
+ std::unique_ptr<ExplodedGraph> TrimmedG(G.trim(Worklist));
----------------
steakhal wrote:
Why is `Worklist` hoised into a variable?
https://github.com/llvm/llvm-project/pull/139939
More information about the cfe-commits
mailing list