From: Rafael Espindola Date: Tue, 29 Oct 2013 19:42:01 +0000 (+0000) Subject: Add support for the separate version of /FI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=799bcc7a875a2caf398728c8ba569c304a681c50;p=clang Add support for the separate version of /FI. Patch by Jeff Muizelaar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193642 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 075e71e353..a363ea5b57 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -119,7 +119,7 @@ def _SLASH_Fa : CLJoined<"Fa">, MetaVarName<"">; 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; def _SLASH_Fe : CLJoined<"Fe">, HelpText<"Set output executable file or directory (ends in / or \\)">, diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 135a0efdd5..4d0c3eda7d 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -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"