Huh, /FI seems to be one of the few file options that cl accepts as joined or separate. Everything else is joined. http://msdn.microsoft.com/en-us/library/vstudio/8c5ztk84(v=vs.110).aspx
On Tue, Oct 29, 2013 at 3:42 PM, Rafael Espindola < [email protected]> wrote: > Author: rafael > Date: Tue Oct 29 14:42:01 2013 > New Revision: 193642 > > URL: http://llvm.org/viewvc/llvm-project?rev=193642&view=rev > Log: > Add support for the separate version of /FI. > > Patch by Jeff Muizelaar. > > Modified: > cfe/trunk/include/clang/Driver/CLCompatOptions.td > cfe/trunk/test/Driver/cl-options.c > > Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=193642&r1=193641&r2=193642&view=diff > > ============================================================================== > --- cfe/trunk/include/clang/Driver/CLCompatOptions.td (original) > +++ cfe/trunk/include/clang/Driver/CLCompatOptions.td Tue Oct 29 14:42:01 > 2013 > @@ -119,7 +119,7 @@ def _SLASH_Fa : CLJoined<"Fa">, > MetaVarName<"<file or directory>">; > def _SLASH_fallback : CLCompileFlag<"fallback">, > HelpText<"Fall back to cl.exe if clang-cl fails to compile">; > -def _SLASH_FI : CLJoined<"FI">, > +def _SLASH_FI : CLJoinedOrSeparate<"FI">, > HelpText<"Include file before parsing">, Alias<include_>; > def _SLASH_Fe : CLJoined<"Fe">, > HelpText<"Set output executable file or directory (ends in / or \\)">, > > Modified: cfe/trunk/test/Driver/cl-options.c > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=193642&r1=193641&r2=193642&view=diff > > ============================================================================== > --- cfe/trunk/test/Driver/cl-options.c (original) > +++ cfe/trunk/test/Driver/cl-options.c Tue Oct 29 14:42:01 2013 > @@ -91,6 +91,9 @@ > // RUN: %clang_cl /FIasdf.h -### -- %s 2>&1 | FileCheck -check-prefix=FI > %s > // FI: "-include" "asdf.h" > > +// RUN: %clang_cl /FI asdf.h -### -- %s 2>&1 | FileCheck > -check-prefix=FI_ %s > +// FI_: "-include" "asdf.h" > + > // We forward any unrecognized -W diagnostic options to cc1. > // RUN: %clang_cl -Wunused-pragmas -### -- %s 2>&1 | FileCheck > -check-prefix=WJoined %s > // WJoined: "-cc1" > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
