[cfe-dev] How to add an option to clang
ganna at apple.com
Mon Mar 11 11:09:57 PDT 2013
Have you tried using -analyzer-config options instead of adding a higher level option for the analyzer? We've recently added this mechanism and plan to make all analyzer options go through analyzer-config.
All you need to do is add the supporting code to AnalyzerOptions.h and AnalyzerOptions.cpp. For example, we've added "-analyzer-config max-times-inline-large=xx" option as part of r170361.
On Mar 10, 2013, at 5:35 AM, YuvalShahar <yuval.shahar.007 at gmail.com> wrote:
> Hi all.
> I too, encountered problems adding a command line options:
> I added my option both to Options.td and to CC1Options.td, but since this
> option is an analyzer option, I am trying to copy it into the analyzer
> options in CompilerInvocation::ParseAnalyzerArgs.
> To do that, I need to read it from the general ArgList, for which I need an
> I see that the clangdriver.pdb binary has this OPT_my_option in it, but I
> still cannot compile my CompilerInvocation class.
> BTW, the link in John's replay isn't working.
> Regards, Yuval.
> View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-add-an-option-to-clang-tp3481960p4030909.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev