Skip to content

Commit 7711fe7

Browse files
Comment dumpCFGAndEgraph for debugging
1 parent 700cd93 commit 7711fe7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/StaticAnalyzer/BlockEntranceCallbackTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ void addBranchConditionTester(AnalysisASTConsumer &AnalysisConsumer,
107107
});
108108
}
109109

110+
/// Add this to the \c runChecker template arguments to enable dumping the CFG
111+
/// and the ExplodedGraph for debugging a failing test case.
110112
[[maybe_unused]] void dumpCFGAndEgraph(AnalysisASTConsumer &AnalysisConsumer,
111113
AnalyzerOptions &AnOpts) {
112114
AnOpts.CheckersAndPackages.emplace_back("debug.DumpCFG", true);

0 commit comments

Comments
 (0)