[clang-tools-extra] r194422 - [extra] pp-trace - Test for moduleImport.

John Thompson John.Thompson.JTSoftware at gmail.com
Mon Nov 11 13:20:03 PST 2013


Author: jtsoftware
Date: Mon Nov 11 15:20:02 2013
New Revision: 194422

URL: http://llvm.org/viewvc/llvm-project?rev=194422&view=rev
Log:
[extra] pp-trace - Test for moduleImport.

Added:
    clang-tools-extra/trunk/test/pp-trace/Inputs/ModularizeList.txt
    clang-tools-extra/trunk/test/pp-trace/Inputs/module.map
    clang-tools-extra/trunk/test/pp-trace/pp-trace-modules.cpp

Added: clang-tools-extra/trunk/test/pp-trace/Inputs/ModularizeList.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/pp-trace/Inputs/ModularizeList.txt?rev=194422&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/pp-trace/Inputs/ModularizeList.txt (added)
+++ clang-tools-extra/trunk/test/pp-trace/Inputs/ModularizeList.txt Mon Nov 11 15:20:02 2013
@@ -0,0 +1,3 @@
+Level1A.h
+Level1B.h
+Level2A.h

Added: clang-tools-extra/trunk/test/pp-trace/Inputs/module.map
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/pp-trace/Inputs/module.map?rev=194422&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/pp-trace/Inputs/module.map (added)
+++ clang-tools-extra/trunk/test/pp-trace/Inputs/module.map Mon Nov 11 15:20:02 2013
@@ -0,0 +1,15 @@
+// module.map
+// Generated by: modularize -module-map-path=module.map ModularizeList.txt
+
+module Level1A {
+  header "Level1A.h"
+  export *
+}
+module Level1B {
+  header "Level1B.h"
+  export *
+}
+module Level2A {
+  header "Level2A.h"
+  export *
+}

Added: clang-tools-extra/trunk/test/pp-trace/pp-trace-modules.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/pp-trace/pp-trace-modules.cpp?rev=194422&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/pp-trace/pp-trace-modules.cpp (added)
+++ clang-tools-extra/trunk/test/pp-trace/pp-trace-modules.cpp Mon Nov 11 15:20:02 2013
@@ -0,0 +1,11 @@
+// RUN: pp-trace -ignore 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
+
+ at import Level1A;
+
+// CHECK: ---
+// CHECK-NEXT: - Callback: moduleImport
+// CHECK-NEXT:   ImportLoc: "{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:2"
+// CHECK-NEXT:   Path: [{Name: Level1A, Loc:"{{.*}}{{[/\\]}}pp-trace-modules.cpp:3:9"}]
+// CHECK-NEXT:   Imported: Level1A
+// CHECK-NEXT: - Callback: EndOfMainFile
+// CHECK-NEXT: ...





More information about the cfe-commits mailing list