diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-28 09:21:10 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-28 09:21:10 +0000 |
commit | 807809c421811509f488f3ebd249585025ad918a (patch) | |
tree | ab90578ed23fdb005e6168137c045b0769c62ecc /unittests/Format/FormatTest.cpp | |
parent | 16cda861c5587d7130a216466a29a808673c1656 (diff) |
Fix spacing after binary operator as macro parameter.
Before: COMPARE(a, == , b);
After: COMPARE(a, ==, b);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 5be319cba0..81833e5e02 100644 --- a/unittests/Format/FormatTest.cpp +++ b/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);"); |