diff options
author | Daniel Jasper <djasper@google.com> | 2014-10-21 07:51:54 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-10-21 07:51:54 +0000 |
commit | 38efc13191c5b46c45b52e8b69b53b6e40b64cc2 (patch) | |
tree | b0dc5319938a8f108181d97bea17be27211e963d /clang/unittests/Format | |
parent | dadf408680a81d5a4c599fb17b072614a20cef89 (diff) | |
download | bcm5719-llvm-38efc13191c5b46c45b52e8b69b53b6e40b64cc2.tar.gz bcm5719-llvm-38efc13191c5b46c45b52e8b69b53b6e40b64cc2.zip |
clang-format: Fix space in direct destructor calls.
Before:
void F(int& i) { i. ~int(); }
After:
void F(int& i) { i.~int(); }
Also, some cleanups.
llvm-svn: 220269
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 79e5ab11826..4f451361fac 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -8924,6 +8924,11 @@ TEST_F(FormatTest, BreakConstructorInitializersBeforeComma) { Style); } +TEST_F(FormatTest, Destructors) { + verifyFormat("void F(int &i) { i.~int(); }"); + verifyFormat("void F(int &i) { i->~int(); }"); +} + TEST_F(FormatTest, FormatsWithWebKitStyle) { FormatStyle Style = getWebKitStyle(); |