summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/Inputs
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-04-05 17:10:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-04-05 17:10:06 +0000
commit3c9bc4dbdb8878d3bd3e2ad9034a25e2e50b53cd (patch)
tree157d26fa70f6fa7b011c8774a550dee2bb1bd5bf /clang/test/Preprocessor/Inputs
parent17138613b135d124eccc85fb7a2920784e8af766 (diff)
downloadbcm5719-llvm-3c9bc4dbdb8878d3bd3e2ad9034a25e2e50b53cd.tar.gz
bcm5719-llvm-3c9bc4dbdb8878d3bd3e2ad9034a25e2e50b53cd.zip
[Lex] Add support for 'user specified system frameworks' (see test case).
- Developers of system frameworks need a way for their framework to be treated as a "system framework" during development. Otherwise, they are unable to properly test how their framework behaves when installed because of the semantic changes (in warning behavior) applied to system frameworks. llvm-svn: 154105
Diffstat (limited to 'clang/test/Preprocessor/Inputs')
-rw-r--r--clang/test/Preprocessor/Inputs/TestFramework.framework/.system_framework0
-rw-r--r--clang/test/Preprocessor/Inputs/TestFramework.framework/Frameworks/AnotherTestFramework.framework/Headers/AnotherTestFramework.h3
-rw-r--r--clang/test/Preprocessor/Inputs/TestFramework.framework/Headers/TestFramework.h6
3 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/Inputs/TestFramework.framework/.system_framework b/clang/test/Preprocessor/Inputs/TestFramework.framework/.system_framework
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/clang/test/Preprocessor/Inputs/TestFramework.framework/.system_framework
diff --git a/clang/test/Preprocessor/Inputs/TestFramework.framework/Frameworks/AnotherTestFramework.framework/Headers/AnotherTestFramework.h b/clang/test/Preprocessor/Inputs/TestFramework.framework/Frameworks/AnotherTestFramework.framework/Headers/AnotherTestFramework.h
new file mode 100644
index 00000000000..489f17a729f
--- /dev/null
+++ b/clang/test/Preprocessor/Inputs/TestFramework.framework/Frameworks/AnotherTestFramework.framework/Headers/AnotherTestFramework.h
@@ -0,0 +1,3 @@
+static inline int another_test_framework_func(unsigned a) {
+ return a;
+}
diff --git a/clang/test/Preprocessor/Inputs/TestFramework.framework/Headers/TestFramework.h b/clang/test/Preprocessor/Inputs/TestFramework.framework/Headers/TestFramework.h
new file mode 100644
index 00000000000..06f9ab545d6
--- /dev/null
+++ b/clang/test/Preprocessor/Inputs/TestFramework.framework/Headers/TestFramework.h
@@ -0,0 +1,6 @@
+// Include a subframework header.
+#include <AnotherTestFramework/AnotherTestFramework.h>
+
+static inline int test_framework_func(unsigned a) {
+ return a;
+}
OpenPOWER on IntegriCloud