summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-28 09:21:10 +0000
committerDaniel Jasper <djasper@google.com>2013-02-28 09:21:10 +0000
commitd8ffcfa9b87c9d08022cc916d41044d2d18e2cfd (patch)
tree54e17ff67a652e8ccf9f15e74ce4f737baf440a8 /clang/unittests/Format
parent4c9300e630145f6f0a6b622393d83bbe46e5c4f5 (diff)
downloadbcm5719-llvm-d8ffcfa9b87c9d08022cc916d41044d2d18e2cfd.tar.gz
bcm5719-llvm-d8ffcfa9b87c9d08022cc916d41044d2d18e2cfd.zip
Fix spacing after binary operator as macro parameter.
Before: COMPARE(a, == , b); After: COMPARE(a, ==, b); llvm-svn: 176241
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r--clang/unittests/Format/FormatTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 5be319cba03..81833e5e02c 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -1709,6 +1709,10 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) {
verifyFormat("template <typename T> void f() {}");
}
+TEST_F(FormatTest, UnderstandsBinaryOperators) {
+ verifyFormat("COMPARE(a, ==, b);");
+}
+
TEST_F(FormatTest, UnderstandsUnaryOperators) {
verifyFormat("int a = -2;");
verifyFormat("f(-1, -2, -3);");
OpenPOWER on IntegriCloud