[clang] 556a811 - [clang][nfc] Update some documentation referring to old clang flags

Nathan Lanza via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 8 20:03:57 PST 2023


Author: Nathan Lanza
Date: 2023-03-08T23:01:52-05:00
New Revision: 556a811d686ea5242d8c21b95a97b90aa1be7c56

URL: https://github.com/llvm/llvm-project/commit/556a811d686ea5242d8c21b95a97b90aa1be7c56
DIFF: https://github.com/llvm/llvm-project/commit/556a811d686ea5242d8c21b95a97b90aa1be7c56.diff

LOG: [clang][nfc] Update some documentation referring to old clang flags

-cfg-dump and -cfg-view were removed long ago. The rest are gone, but
I'm opting not to remove these lines without finding a replacement.

Added: 
    

Modified: 
    clang/lib/StaticAnalyzer/README.txt

Removed: 
    


################################################################################
diff  --git a/clang/lib/StaticAnalyzer/README.txt b/clang/lib/StaticAnalyzer/README.txt
index 75f20315a7ae8..ae622caf6ccb4 100644
--- a/clang/lib/StaticAnalyzer/README.txt
+++ b/clang/lib/StaticAnalyzer/README.txt
@@ -119,15 +119,17 @@ simulation results.
 
 Of course, viewing the CFG (Control-Flow Graph) is also useful:
 
-$ clang -cc1 -help | grep cfg
- -cfg-add-implicit-dtors Add C++ implicit destructors to CFGs for all analyses
- -cfg-add-initializers   Add C++ initializers to CFGs for all analyses
- -cfg-dump               Display Control-Flow Graphs
- -cfg-view               View Control-Flow Graphs using GraphViz
- -unoptimized-cfg        Generate unoptimized CFGs for all analyses
-
--cfg-dump dumps a textual representation of the CFG to the console,
-and -cfg-view creates a GraphViz representation.
+$ clang -cc1 -analyzer-checker-help-developer
+
+ -analyzer-checker=debug.DumpCFG   Display Control-Flow Graphs
+ -analyzer-checker=debug.ViewCFG   View Control-Flow Graphs using GraphViz
+(outdated below?)
+ -cfg-add-implicit-dtors           Add C++ implicit destructors to CFGs for all analyses
+ -cfg-add-initializers             Add C++ initializers to CFGs for all analyses
+ -unoptimized-cfg                  Generate unoptimized CFGs for all analyses
+
+debug.DumpCFG dumps a textual representation of the CFG to the console, and
+debug.ViewCFG creates a GraphViz representation.
 
 = References =
 


        


More information about the cfe-commits mailing list