forked from OSchip/llvm-project
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
This commit is contained in:
parent
4edda28b8a
commit
7533b4dada
|
@ -430,7 +430,6 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) {
|
|||
ChromiumStyle.AllowShortLoopsOnASingleLine = false;
|
||||
ChromiumStyle.BinPackParameters = false;
|
||||
ChromiumStyle.DerivePointerAlignment = false;
|
||||
ChromiumStyle.Standard = FormatStyle::LS_Cpp03;
|
||||
return ChromiumStyle;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;");
|
||||
|
||||
|
|
Loading…
Reference in New Issue