summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-03-25 10:52:45 +0000
committerDaniel Jasper <djasper@google.com>2014-03-25 10:52:45 +0000
commita65e8875878d00c124ab52ba80cac04037ea44e5 (patch)
tree2136d4932880ea6d2b95916e6769093f8b113158 /clang/unittests/Format/FormatTest.cpp
parent517ff05ffb5d5060e9541f852aed4cda52244163 (diff)
downloadbcm5719-llvm-a65e8875878d00c124ab52ba80cac04037ea44e5.tar.gz
bcm5719-llvm-a65e8875878d00c124ab52ba80cac04037ea44e5.zip
clang-format: Fix incorrect &/* detection.
Before: STATIC_ASSERT((a &b) == 0); After: STATIC_ASSERT((a & b) == 0); llvm-svn: 204709
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-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 0ae08bcfc07..3da478c0923 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4527,6 +4527,8 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
FormatStyle PointerLeft = getLLVMStyle();
PointerLeft.PointerBindsToType = true;
verifyFormat("delete *x;", PointerLeft);
+ verifyFormat("STATIC_ASSERT((a & b) == 0);");
+ verifyFormat("STATIC_ASSERT(0 == (a & b));");
}
TEST_F(FormatTest, UnderstandsAttributes) {
OpenPOWER on IntegriCloud