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 | d127e3b6af0559331ac9c16f5e100e69501fc818 (patch) | |
tree | bcfa8cacb61d1e1d3959bffc726bd67877236448 /clang/unittests/Format/FormatTest.cpp | |
parent | b7859ddf9bdc2b8ef689036fadb4501cf22d79f4 (diff) | |
download | bcm5719-llvm-d127e3b6af0559331ac9c16f5e100e69501fc818.tar.gz bcm5719-llvm-d127e3b6af0559331ac9c16f5e100e69501fc818.zip |
clang-format: Correctly detect multiplication in ctor initializer.
Before:
Constructor() : a(a), area(width *height) {}
After:
Constructor() : a(a), area(width * height) {}
llvm-svn: 222010
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-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 31984f6bfaf..540dd03b42e 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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;"); |