<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; "><div>I'll start off by saying of course this is not supported. ;-) </div><div><br></div><div>I have two guesses, though:</div><div>- Warnings are automatically added to the -W group; you should <i>not</i> put a new flag into Options.td for a new warning.</div><div>- Warnings are probably also used when uniquing PCHs, so it's possible (but not likely) that Xcode is trying to use an incompatible PCH during indexing. I doubt this is it, but if it is, turning off PCH support in the build settings might make completion come back.</div><div><br></div><div>Jordan</div><div><br></div><div><br></div><br><div><div>On Apr 15, 2013, at 5:14 , Sebastian Hagedorn <<a href="mailto:hagi.dd@web.de">hagi.dd@web.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm using a (slightly) modified version of Clang to be used within Xcode. I integrate it using the "CC" flag in Xcode. All my modifications are turned off by default, but may be switched on by a set of custom flags.<div><br></div><div>If I don't set any of these, everything is fine. However, if I enable one of my custom warnings, these warnings show up when building the project/target, but Xcode's autocompletion stops working. Could it be that Xcode is confused because it works with different versions of Clang?</div><div><br></div><div>Not all of my custom flags break the autocomplete function. E.g., I have this option in Options.td:</div><div><br></div><div><div><font face="Monaco" style="font-size: 11px;">def export_stats : Flag<["-"], "export-stats">,</font></div><div><font face="Monaco" style="font-size: 11px;">  Flags<[CC1Option]>,</font></div><div><font face="Monaco" style="font-size: 11px;">  HelpText<"....">;</font></div></div><div><br></div><div>Setting it doesn't break anything, but the following does:</div><div><br></div><div>[Options.td]</div><div><div><font face="Monaco"><span style="font-size: 11px;">def Wunsafe_api_usage : Flag<["-"], "Wunsafe-api-usage">,</span></font></div><div><font face="Monaco"><span style="font-size: 11px;">  Group<W_Group>,</span></font></div><div><font face="Monaco"><span style="font-size: 11px;">  Flags<[CC1Option]>,</span></font></div><div><font face="Monaco"><span style="font-size: 11px;">  HelpText<"...">;</span></font></div></div><div><br></div><div>[DiagnosticSemaKinds.td]</div><div><div><font face="Monaco" style="font-size: 11px;">def warn_unsafe_api_usage : Warning<</font></div><div><font face="Monaco" style="font-size: 11px;">  "WarningText">,</font></div><div><font face="Monaco" style="font-size: 11px;">  InGroup<DiagGroup<"unsafe-api-usage">>, DefaultIgnore;</font></div></div><div><br></div><div>Did I get something wrong, or do I just have to live with it because Xcode is not prepared for this type of modification?</div><div><br></div><div>Cheers</div><div>Hagi</div><div><br></div></div>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>