File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,9 @@ bool types::isCXX(ID Id) {
242
242
case TY_CXXHUHeader:
243
243
case TY_PP_CXXHeaderUnit:
244
244
case TY_ObjCXXHeader: case TY_PP_ObjCXXHeader:
245
- case TY_CXXModule: case TY_PP_CXXModule:
245
+ case TY_CXXModule:
246
+ case TY_PP_CXXModule:
247
+ case TY_ModuleFile:
246
248
case TY_PP_CLCXX:
247
249
case TY_CUDA: case TY_PP_CUDA: case TY_CUDA_DEVICE:
248
250
case TY_HIP:
Original file line number Diff line number Diff line change
1
+ // RUN: rm -rf %t
2
+ // RUN: split-file %s %t
3
+
1
4
// RUN: %clang_cl /std:c++20 --precompile -### -- %s 2>&1 | FileCheck --check-prefix=PRECOMPILE %s
2
5
// PRECOMPILE: -emit-module-interface
3
6
6
9
7
10
// RUN: %clang_cl /std:c++20 --fprebuilt-module-path=. -### -- %s 2>&1 | FileCheck --check-prefix=FPREBUILT %s
8
11
// FPREBUILT: -fprebuilt-module-path=.
12
+
13
+ // RUN: %clang_cl %t/test.pcm /std:c++20 -### 2>&1 | FileCheck --check-prefix=CPP20WARNING %t/test.pcm
14
+
15
+ // --- test.pcm
16
+ // CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument]
You can’t perform that action at this time.
0 commit comments