Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use cfg-dump option with Clang 3.0?

Tags:

llvm

clang

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?

like image 970
haruna Avatar asked Feb 10 '12 09:02

haruna


1 Answers

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.

like image 111
osgx Avatar answered Sep 28 '22 08:09

osgx