diff options
| author | Manuel Klimek <klimek@google.com> | 2014-07-31 07:19:30 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2014-07-31 07:19:30 +0000 |
| commit | 45bf56cdf900de40f60997fed8ef7aadf0ef75bb (patch) | |
| tree | 057a3d492d7a6317f5b6ac5cb99ec1829ae304e2 /clang/unittests/Format/FormatTest.cpp | |
| parent | 87c046189dd1029d8ee0fb3382869220678f5151 (diff) | |
| download | bcm5719-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.cpp | 1 |
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) { |

