[PATCH] Move the -i[no-]system-prefix options from CC1Options.td to Options.td.

Richard Smith richard at metafoo.co.uk
Tue Mar 25 15:40:18 PDT 2014



================
Comment at: include/clang/Driver/Options.td:964-971
@@ -963,2 +963,10 @@
   HelpText<"Add directory to SYSTEM include search path">, MetaVarName<"<directory>">;
+def isystem_prefix : JoinedOrSeparate<["-"], "isystem-prefix">,
+  Group<clang_i_Group>, Flags<[CC1Option]>, MetaVarName<"<prefix>">,
+  HelpText<"Treat all #include paths starting with <prefix> as including a "
+           "system header.">;
+def ino_system_prefix : JoinedOrSeparate<["-"], "ino-system-prefix">,
+  Group<clang_i_Group>, Flags<[CC1Option]>, MetaVarName<"<prefix>">,
+  HelpText<"Treat all #include paths starting with <prefix> as not including a "
+           "system header.">;
 def iwithprefixbefore : JoinedOrSeparate<["-"], "iwithprefixbefore">, Group<clang_i_Group>,
----------------
If we're going to publish these in the driver interface, I'd really prefer not to allow a joined form, or to use an `=` in it. `-isystem-prefixblah` is horrible.


http://llvm-reviews.chandlerc.com/D3185



More information about the cfe-commits mailing list