[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / test / pp-trace / pp-trace-modules.cpp
blob32d6c48e5d448f5ca979b2c086fbd9eacbc718cf
1 // RUN: rm -rf %t
2 // RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x objective-c++ -undef -target x86_64 -std=c++11 -fmodules -fcxx-modules -fmodules-cache-path=%t -I%S -I%S/Input | FileCheck --strict-whitespace %s
4 // CHECK: ---
6 @import Level1A;
8 // CHECK-NEXT: - Callback: moduleImport
9 // CHECK-NEXT: ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-3]]:2"
10 // CHECK-NEXT: Path: [{Name: Level1A, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:9"}]
11 // CHECK-NEXT: Imported: Level1A
13 @import Level1B.Level2B;
15 // CHECK-NEXT: - Callback: moduleImport
16 // CHECK-NEXT: ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-3]]:2"
17 // CHECK-NEXT: Path: [{Name: Level1B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:9"}, {Name: Level2B, Loc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:[[@LINE-4]]:17"}]
18 // CHECK-NEXT: Imported: Level2B
19 // CHECK-NEXT: - Callback: EndOfMainFile
20 // CHECK-NEXT: ...