[cfe-dev] Building CFG piece by piece

Anna Zaks ganna at apple.com
Mon Aug 26 10:20:15 PDT 2013


On Aug 26, 2013, at 3:02 AM, Vadium <vabrva at gmail.com> wrote:

> Thank you, Anna, you helped me very much understanding how it works. I'm
> building it now via modified ASTConsumer and RecursiveASTVisitor and it is
> building me CFG like in checker.
> 
> I also have a question on the output formatting of CFG. The CFG outputted
> this way is easier to read if generated this way, but still sometimes I
> encounter something like:
> ...
> 3: n (ImplicitCastExpr, LValueToRValue, int)
> T: switch [B10.3]
> ...
> Is there any way to mute "ImplicitCastExpr, LValueToRValue" and other like
> this as it brings no use for me?

You could modify CFG printer not to print the implicit l-value to r-value casts (in your source tree)...

> 
> Vadim
> 
> 
> 
> 
> -----
> Since speech has been invented, people still can't understand each other.
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/Building-CFG-piece-by-piece-tp4034028p4034060.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list