diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-09-24 17:17:32 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-09-24 17:17:32 +0000 |
commit | 7533b4dada21d04b10bd9f435309c25a25f3e3ec (patch) | |
tree | d346bb646639af8d63574d2023b8c3705477239b /clang/unittests/Format/FormatTest.cpp | |
parent | 4edda28b8ac076ce31c0003ce3562b0207c106e1 (diff) | |
download | bcm5719-llvm-7533b4dada21d04b10bd9f435309c25a25f3e3ec.tar.gz bcm5719-llvm-7533b4dada21d04b10bd9f435309c25a25f3e3ec.zip |
clang-format: Don't let -style=Chromium imply c++03 template formatting.
Chromium's now using some c++11 language features, so it's now fine that
clang-format produces vector<vector<int>>.
llvm-svn: 218392
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 44429031d89..a88464f3824 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4672,6 +4672,8 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) { EXPECT_EQ("A<::A<int>> a;", format("A< ::A<int>> a;", getGoogleStyle())); EXPECT_EQ("A<::A<int>> a;", format("A<::A<int> > a;", getGoogleStyle())); + verifyFormat("A<A>> a;", getChromiumStyle(FormatStyle::LK_Cpp)); + verifyFormat("test >> a >> b;"); verifyFormat("test << a >> b;"); |