summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2014-07-31 07:19:30 +0000
committerManuel Klimek <klimek@google.com>2014-07-31 07:19:30 +0000
commit45bf56cdf900de40f60997fed8ef7aadf0ef75bb (patch)
tree057a3d492d7a6317f5b6ac5cb99ec1829ae304e2 /clang/unittests/Format/FormatTest.cpp
parent87c046189dd1029d8ee0fb3382869220678f5151 (diff)
downloadbcm5719-llvm-45bf56cdf900de40f60997fed8ef7aadf0ef75bb.tar.gz
bcm5719-llvm-45bf56cdf900de40f60997fed8ef7aadf0ef75bb.zip
Fix parsing of classes where the class name is an absolute nested name specifier.
llvm-svn: 214393
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 420129f1be2..bebd8d67d49 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -1846,6 +1846,7 @@ TEST_F(FormatTest, FormatsClasses) {
verifyFormat("template <class R, class C>\n"
"struct Aaaaaaaaaaaaaaaaa<R (C::*)(int) const>\n"
" : Aaaaaaaaaaaaaaaaa<R (C::*)(int)> {};");
+ verifyFormat("class ::A::B {};");
}
TEST_F(FormatTest, FormatsVariableDeclarationsAfterStructOrClass) {
OpenPOWER on IntegriCloud