summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-02 22:46:42 +0000
committerDaniel Jasper <djasper@google.com>2014-11-02 22:46:42 +0000
commit8022226db7457e367420ac6126f07ee1568a1c04 (patch)
tree891625c26881324a5d891f752abf98c82cb9e4f5 /clang/unittests/Format/FormatTest.cpp
parentdf2ff002f0fd203119e8d5abfbbfa71f15b1b499 (diff)
downloadbcm5719-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.cpp1
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) {
OpenPOWER on IntegriCloud