Skip to content

Commit 2a1c7bd

Browse files
committed
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 ------------------------------------------------------------------------ llvm-svn: 355675
1 parent 2cc470a commit 2a1c7bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/include/clang/Driver/CLCompatOptions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
395395

396396
// Unsupported:
397397

398-
def _SLASH_AI : CLJoined<"AI">;
398+
def _SLASH_AI : CLJoinedOrSeparate<"AI">;
399399
def _SLASH_Bt : CLFlag<"Bt">;
400400
def _SLASH_Bt_plus : CLFlag<"Bt+">;
401401
def _SLASH_clr : CLJoined<"clr">;

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@
391391
// (/Zs is for syntax-only)
392392
// RUN: %clang_cl /Zs \
393393
// RUN: /AIfoo \
394+
// RUN: /AI foo_does_not_exist \
394395
// RUN: /Bt \
395396
// RUN: /Bt+ \
396397
// RUN: /clr:pure \

0 commit comments

Comments
 (0)