[cfe-dev] [Clang Static Analyzer]: How to get name of Macro in Static Analyzer.

Daniel Marjamäki Daniel.Marjamaki at evidente.se
Wed Dec 25 00:35:54 PST 2013


Hello!

I can't give you much info about this.

I don't _think_ you can get the macro name directly. A couple of months ago I wanted to see if a AST element was inside a assert macro or not.. but was told that there is no direct way to find this out.

I believe you could do it in some "hacky" way though. For instance by looking at the data that is used to output raw source code in error messages. Maybe there is a better way.

Best regards,
Daniel Marjamäki

..................................................................................................................
Daniel Marjamäki Senior Engineer
Evidente ES East AB  Warfvinges väg 34  SE-112 51 Stockholm  Sweden

Mobile:                 +46 (0)709 12 42 62
E-mail:                 Daniel.Marjamaki<mailto:Daniel.Marjamaki at evidente.se>@evidente.se<mailto:Daniel.Marjamaki at evidente.se>

www.evidente.se
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131225/9d315eea/attachment.html>


More information about the cfe-dev mailing list