summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-07-28 12:08:06 +0000
committerDaniel Jasper <djasper@google.com>2014-07-28 12:08:06 +0000
commit8b76d608b8eaf24ec2ad80dd7b06db0edc9365cf (patch)
tree46c81419f8e3d591c2ac4fed889db8651e2148ae /clang/unittests/Format/FormatTest.cpp
parenta1e66057c14309fe3e2405e70746d1b32a7afa25 (diff)
downloadbcm5719-llvm-8b76d608b8eaf24ec2ad80dd7b06db0edc9365cf.tar.gz
bcm5719-llvm-8b76d608b8eaf24ec2ad80dd7b06db0edc9365cf.zip
clang-format: Fix formatting of lock annotations in lambda definitions.
Before: SomeFunction([](int i)LOCKS_EXCLUDED(a) {}); After: SomeFunction([](int i) LOCKS_EXCLUDED(a) {}); llvm-svn: 214069
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 21bc8627546..1fdbe4d0922 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -3513,6 +3513,7 @@ TEST_F(FormatTest, BreaksFunctionDeclarationsWithTrailingTokens) {
" LOCKS_EXCLUDED(aaaaaaaaaaaaa) {}");
verifyGoogleFormat("void aaaaaaaaaaaaaa(aaaaaaaa aaa) override\n"
" AAAAAAAAAAAAAAAAAAAAAAAA(aaaaaaaaaaaaaaa);");
+ verifyFormat("SomeFunction([](int i) LOCKS_EXCLUDED(a) {});");
verifyFormat(
"void aaaaaaaaaaaaaaaaaa()\n"
OpenPOWER on IntegriCloud