diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-04 07:39:00 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-04 07:39:00 +0000 |
commit | de7ca75ca0856dbf2389abcd0b9d307bdcc390e5 (patch) | |
tree | 396a062dd0e29ea8c3fdda2dad990be49a309fce /clang/unittests/Format/FormatTest.cpp | |
parent | 1c34f7cf18722101367aaa36c990221991ad2bf4 (diff) | |
download | bcm5719-llvm-de7ca75ca0856dbf2389abcd0b9d307bdcc390e5.tar.gz bcm5719-llvm-de7ca75ca0856dbf2389abcd0b9d307bdcc390e5.zip |
clang-format: Force aligning different brackets relative to each other.
Before:
void SomeFunction(vector< // break
int> v);
After:
void SomeFunction(vector< // break
int> v);
llvm-svn: 236412
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index e2db4d10b95..a1817ea1926 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5803,6 +5803,13 @@ TEST_F(FormatTest, BreaksLongDeclarations) { verifyFormat("typedef size_t (*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)(\n" " const aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" " *aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);"); + verifyFormat("void aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" + " vector<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>\n" + " aaaaaaaaaaaaaaaaaaaaaaaa);"); + verifyFormat("void aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" + " vector<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<\n" + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>>\n" + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);"); } TEST_F(FormatTest, FormatsArrays) { |