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 | d265090cd67ebb3f2dd280a30722b07f080eefce (patch) | |
tree | b88bc6a6af2d595d80ed28187cdb1760ce5a38f1 /clang/unittests | |
parent | 09aba10499fc621907ff4153a030e79c3456670c (diff) | |
download | bcm5719-llvm-d265090cd67ebb3f2dd280a30722b07f080eefce.tar.gz bcm5719-llvm-d265090cd67ebb3f2dd280a30722b07f080eefce.zip |
Parse record declarations with token pasted identifiers.
This is pretty common in macros:
#define A(X, Y) class X##Y {};
llvm-svn: 174512
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index cd3bf17df2d..fc95acca527 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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;"); |