[cfe-dev] Custom Clang and Xcode

Sebastian Hagedorn hagi.dd at web.de
Mon Apr 15 05:14:11 PDT 2013


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.

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?

Not all of my custom flags break the autocomplete function. E.g., I have this option in Options.td:

def export_stats : Flag<["-"], "export-stats">,
  Flags<[CC1Option]>,
  HelpText<"....">;

Setting it doesn't break anything, but the following does:

[Options.td]
def Wunsafe_api_usage : Flag<["-"], "Wunsafe-api-usage">,
  Group<W_Group>,
  Flags<[CC1Option]>,
  HelpText<"...">;

[DiagnosticSemaKinds.td]
def warn_unsafe_api_usage : Warning<
  "WarningText">,
  InGroup<DiagGroup<"unsafe-api-usage">>, DefaultIgnore;

Did I get something wrong, or do I just have to live with it because Xcode is not prepared for this type of modification?

Cheers
Hagi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130415/d8d7894b/attachment.html>


More information about the cfe-dev mailing list