diff options
author | Manuel Klimek <klimek@google.com> | 2013-02-06 15:57:54 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-02-06 15:57:54 +0000 |
commit | b8b1ce12362860e55590c55fd43db875c9193357 (patch) | |
tree | eaff41bfc04490d5d61647077210e4cbc1fe9a77 /unittests/Format/FormatTest.cpp | |
parent | 36ba0ff4b632cff7424693b9818bcc8d9ea7798a (diff) |
Parse record declarations with token pasted identifiers.
This is pretty common in macros:
#define A(X, Y) class X##Y {};
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index cd3bf17df2..fc95acca52 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1859,6 +1859,7 @@ TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) { verifyFormat("class MACRO(X) Z {\n} n;"); verifyFormat("class __attribute__(X) Z {\n} n;"); verifyFormat("class __declspec(X) Z {\n} n;"); + verifyFormat("class A##B##C {\n} n;"); // Redefinition from nested context: verifyFormat("class A::B::C {\n} n;"); |