diff options
author | Daniel Jasper <djasper@google.com> | 2016-09-26 15:14:24 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-09-26 15:14:24 +0000 |
commit | 3f2cde91d8b66d2d086fa08ee874535ba3b6a4ec (patch) | |
tree | 185b69834f961b75a1ff392127937b514b98690f /clang/unittests/Format | |
parent | 160572855dec877a5aa153130f9a3b40c722f839 (diff) | |
download | bcm5719-llvm-3f2cde91d8b66d2d086fa08ee874535ba3b6a4ec.tar.gz bcm5719-llvm-3f2cde91d8b66d2d086fa08ee874535ba3b6a4ec.zip |
clang-format: Only special-case top-level */& in multivar-declstmts.
Before (even with PointerAlignment: Left):
vector<int *> a, b;
After:
vector<int*> a, b;
llvm-svn: 282410
Diffstat (limited to 'clang/unittests/Format')
-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 6cffb3b238e..bac2a5b7a91 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4802,6 +4802,7 @@ TEST_F(FormatTest, DeclarationsOfMultipleVariables) { verifyFormat("aaaaaaaaa *a = aaaaaaaaaaaaaaaaaaa, *b = bbbbbbbbbbbbbbbbbbb,\n" " *b = bbbbbbbbbbbbbbbbbbb, *d = ddddddddddddddddddd;", Style); + verifyFormat("vector<int*> a, b;", Style); } TEST_F(FormatTest, ConditionalExpressionsInBrackets) { |