<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Yuval,<div><br></div><div>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.</div><div><br></div><div>All you need to do is add the supporting code to <span style="color: rgb(0, 132, 0); font-family: Menlo;">AnalyzerOptions.h </span>and <span style="color: rgb(0, 132, 0); font-family: Menlo;">AnalyzerOptions.cpp</span>. For example, we've added "-analyzer-config max-times-inline-large=xx" option as part of r170361.</div><div><br></div><div>Anna.</div><div><br></div><div><div><div>On Mar 10, 2013, at 5:35 AM, YuvalShahar <<a href="mailto:yuval.shahar.007@gmail.com">yuval.shahar.007@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Hi all.<br><br>I too, encountered problems adding a command line options:<br><br>I added my option both to Options.td and to CC1Options.td, but since this<br>option is an analyzer option, I am trying to copy it into the analyzer<br>options in CompilerInvocation::ParseAnalyzerArgs.<br><br>To do that, I need to read it from the general ArgList, for which I need an<br>OptSpecifier.<br>I see that the clangdriver.pdb binary has this OPT_my_option in it, but I<br>still cannot compile my  CompilerInvocation class.<br><br><br>BTW, the link in John's replay isn't working.<br><br>Regards, Yuval.<br><br><br><br>--<br>View this message in context:<span class="Apple-converted-space"> </span><a href="http://clang-developers.42468.n3.nabble.com/How-to-add-an-option-to-clang-tp3481960p4030909.html">http://clang-developers.42468.n3.nabble.com/How-to-add-an-option-to-clang-tp3481960p4030909.html</a><br>Sent from the Clang Developers mailing list archive at<span class="Apple-converted-space"> </span><a href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></div></blockquote></div><br></div></body></html>