diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-02 22:46:42 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-02 22:46:42 +0000 |
commit | 8022226db7457e367420ac6126f07ee1568a1c04 (patch) | |
tree | 891625c26881324a5d891f752abf98c82cb9e4f5 /clang/unittests/Format/FormatTest.cpp | |
parent | df2ff002f0fd203119e8d5abfbbfa71f15b1b499 (diff) | |
download | bcm5719-llvm-8022226db7457e367420ac6126f07ee1568a1c04.tar.gz bcm5719-llvm-8022226db7457e367420ac6126f07ee1568a1c04.zip |
clang-format: Fix false positive in lambda detection.
Before:
delete [] a -> b;
After:
delete[] a->b;
This fixes part of llvm.org/PR21419.
llvm-svn: 221114
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 c91d378dd4a..cd832651066 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4889,6 +4889,7 @@ TEST_F(FormatTest, UnderstandsNewAndDelete) { verifyFormat("auto aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa =\n" " new (aaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaa))\n" " typename aaaaaaaaaaaaaaaaaaaaaaaa();"); + verifyFormat("delete[] h->p;"); } TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { |