diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-03-08 09:25:36 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-03-08 09:25:36 +0000 |
commit | fc425397b0cd9229d788efc4afecb8b07a9c8128 (patch) | |
tree | 4dd9789ceb4321cd0c62f5c312320d9c3ccc36b6 | |
parent | 3201dce221fc2910baee72d927f5caf2747a2ba7 (diff) |
Merging r352119:
------------------------------------------------------------------------
r352119 | rnk | 2019-01-24 23:26:51 +0100 (Thu, 24 Jan 2019) | 7 lines
[clang-cl] Ignore space-separated /AI arguments
The /AI flag is for #using directives, which I don't think we support.
This is consistent with how the /I flag is handled by MSVC. Add a test
for it.
Differential Revision: https://reviews.llvm.org/D57189
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_80@355675 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Driver/CLCompatOptions.td | 2 | ||||
-rw-r--r-- | test/Driver/cl-options.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 3e0dc2db7d..ce5a435362 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -395,7 +395,7 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">; // Unsupported: -def _SLASH_AI : CLJoined<"AI">; +def _SLASH_AI : CLJoinedOrSeparate<"AI">; def _SLASH_Bt : CLFlag<"Bt">; def _SLASH_Bt_plus : CLFlag<"Bt+">; def _SLASH_clr : CLJoined<"clr">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index d8db081ac8..1fa2ae3914 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -391,6 +391,7 @@ // (/Zs is for syntax-only) // RUN: %clang_cl /Zs \ // RUN: /AIfoo \ +// RUN: /AI foo_does_not_exist \ // RUN: /Bt \ // RUN: /Bt+ \ // RUN: /clr:pure \ |