summaryrefslogtreecommitdiffstats
path: root/clang/bindings/python/tests/cindex/INPUTS
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-13 18:33:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-13 18:33:18 +0000
commit43813bf0232abba5c813b042c68ec8424d21bc0c (patch)
tree51bef9d5fcc322f86f953a8f3bc61f014c4c905d /clang/bindings/python/tests/cindex/INPUTS
parent2037d4e4ea3bcd6201dd4019ea10fb85abb9e365 (diff)
downloadbcm5719-llvm-43813bf0232abba5c813b042c68ec8424d21bc0c.tar.gz
bcm5719-llvm-43813bf0232abba5c813b042c68ec8424d21bc0c.zip
cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton!
llvm-svn: 96106
Diffstat (limited to 'clang/bindings/python/tests/cindex/INPUTS')
-rw-r--r--clang/bindings/python/tests/cindex/INPUTS/header1.h6
-rw-r--r--clang/bindings/python/tests/cindex/INPUTS/header2.h6
-rw-r--r--clang/bindings/python/tests/cindex/INPUTS/header3.h3
-rw-r--r--clang/bindings/python/tests/cindex/INPUTS/include.cpp5
4 files changed, 20 insertions, 0 deletions
diff --git a/clang/bindings/python/tests/cindex/INPUTS/header1.h b/clang/bindings/python/tests/cindex/INPUTS/header1.h
new file mode 100644
index 00000000000..b4eacbee375
--- /dev/null
+++ b/clang/bindings/python/tests/cindex/INPUTS/header1.h
@@ -0,0 +1,6 @@
+#ifndef HEADER1
+#define HEADER1
+
+#include "header3.h"
+
+#endif
diff --git a/clang/bindings/python/tests/cindex/INPUTS/header2.h b/clang/bindings/python/tests/cindex/INPUTS/header2.h
new file mode 100644
index 00000000000..c4eddc0c562
--- /dev/null
+++ b/clang/bindings/python/tests/cindex/INPUTS/header2.h
@@ -0,0 +1,6 @@
+#ifndef HEADER2
+#define HEADER2
+
+#include "header3.h"
+
+#endif
diff --git a/clang/bindings/python/tests/cindex/INPUTS/header3.h b/clang/bindings/python/tests/cindex/INPUTS/header3.h
new file mode 100644
index 00000000000..6dca764860e
--- /dev/null
+++ b/clang/bindings/python/tests/cindex/INPUTS/header3.h
@@ -0,0 +1,3 @@
+// Not a guarded header!
+
+void f();
diff --git a/clang/bindings/python/tests/cindex/INPUTS/include.cpp b/clang/bindings/python/tests/cindex/INPUTS/include.cpp
new file mode 100644
index 00000000000..60cfdaae4d0
--- /dev/null
+++ b/clang/bindings/python/tests/cindex/INPUTS/include.cpp
@@ -0,0 +1,5 @@
+#include "header1.h"
+#include "header2.h"
+#include "header1.h"
+
+int main() { }
OpenPOWER on IntegriCloud