I had tried to do following post: http://clang-developers.42468.n3.nabble.com/CFG-dump-in-clang-td2076047.html
Like this:clang -cc1 -analyze -cfg-dump test.cpp
However, I got this warning:error: unknown argument: '-cfg-dump'
How can I use cfg-dump option?
Do not Clang 3.0 have cfg-dump option?
It was renamed at Feb 17 15:39:39 CST 2011, Revision: 125780
'-cfg-dump' is replaced by '-analyzer-checker=debug.DumpCFG'
'-dump-live-variables' is replaced by '-analyzer-checker=debug.DumpLiveVars'
'-cfg-view' is replaced by '-analyzer-checker=debug.ViewCFG'
Update: according to haruna in comments, '-analyzer
' option is needed to use any analyzer-checker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With