summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-10-07 03:43:10 +0000
committerDaniel Jasper <djasper@google.com>2015-10-07 03:43:10 +0000
commit5af04a4d015a481fa1b91faf0d2ee5b43d064296 (patch)
tree87a02ec14a33ec47987ea6cf34821c45a5dd6e63 /clang/unittests/Format
parente597ace1fe03767c485c2ed36561eb34e8127b4c (diff)
downloadbcm5719-llvm-5af04a4d015a481fa1b91faf0d2ee5b43d064296.tar.gz
bcm5719-llvm-5af04a4d015a481fa1b91faf0d2ee5b43d064296.zip
clang-format: Fix false ObjC block detection.
Before: inline A operator^(const A &lhs, const A &rhs) {} int i; After: inline A operator^(const A &lhs, const A &rhs) {} int i; llvm-svn: 249517
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 6a265f3dd15..ff9d2d473ff 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5327,6 +5327,8 @@ TEST_F(FormatTest, UnderstandsOverloadedOperators) {
verifyGoogleFormat("operator ::A();");
verifyFormat("using A::operator+;");
+ verifyFormat("inline A operator^(const A &lhs, const A &rhs) {}\n"
+ "int i;");
}
TEST_F(FormatTest, UnderstandsFunctionRefQualification) {
OpenPOWER on IntegriCloud