diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-14 17:26:49 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-14 17:26:49 +0000 |
commit | c7ad4a250b860da295d9b3496bd10ce75c51a4cf (patch) | |
tree | 1f167ddd5bb7c4ffd85fa2ff85218691a8c04a00 /unittests | |
parent | c5d7201f3c6cf1415afd35ea8b6d97d664b9c629 (diff) |
clang-format: Correctly detect multiplication in ctor initializer.
Before:
Constructor() : a(a), area(width *height) {}
After:
Constructor() : a(a), area(width * height) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 31984f6bfa..540dd03b42 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -5008,6 +5008,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyIndependentOfContext("int i{a * b};"); verifyIndependentOfContext("aaa && aaa->f();"); verifyIndependentOfContext("int x = ~*p;"); + verifyFormat("Constructor() : a(a), area(width * height) {}"); verifyIndependentOfContext("InvalidRegions[*R] = 0;"); |