summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/Inputs/macros.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-09-25 17:18:14 +0000
committerAlexander Kornienko <alexfh@google.com>2012-09-25 17:18:14 +0000
commit1d26c0272289d4f1b83d71ae2257957890caef4a (patch)
tree02cac5309a518da12059b6893283e63d04d91365 /clang/test/CodeCompletion/Inputs/macros.h
parent24719e32365f1e6b5cdd327d229c4e15a1f4f35b (diff)
downloadbcm5719-llvm-1d26c0272289d4f1b83d71ae2257957890caef4a.tar.gz
bcm5719-llvm-1d26c0272289d4f1b83d71ae2257957890caef4a.zip
Macro history (de-)serialization. Deserialization currently reads only the latest macro definition. Needs more work.
Summary: Passes all tests (+ the new one with code completion), but needs a thorough review in part related to modules. Reviewers: doug.gregor Reviewed By: alexfh CC: cfe-commits, rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D41 llvm-svn: 164610
Diffstat (limited to 'clang/test/CodeCompletion/Inputs/macros.h')
-rw-r--r--clang/test/CodeCompletion/Inputs/macros.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/Inputs/macros.h b/clang/test/CodeCompletion/Inputs/macros.h
index 98b5ac6510a..5f15dfc2be3 100644
--- a/clang/test/CodeCompletion/Inputs/macros.h
+++ b/clang/test/CodeCompletion/Inputs/macros.h
@@ -2,3 +2,10 @@
#define BAR(X, Y) X, Y
#define IDENTITY(X) X
#define WIBBLE(...)
+#define DEAD_MACRO
+#undef DEAD_MACRO
+#define MACRO_WITH_HISTORY a
+#undef MACRO_WITH_HISTORY
+#define MACRO_WITH_HISTORY b, c
+#undef MACRO_WITH_HISTORY
+#define MACRO_WITH_HISTORY(X, Y) X->Y
OpenPOWER on IntegriCloud