diff options
author | Daniel Jasper <djasper@google.com> | 2014-10-23 20:22:22 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-10-23 20:22:22 +0000 |
commit | f322eb5c450162a975123b2c1446a86739d865f5 (patch) | |
tree | 5db3f454521eca6ba4f63bb17a87f950b3d2bedf /clang/unittests/Format/FormatTest.cpp | |
parent | 078be601cff23a793691138d5c16f33c7a69995d (diff) | |
download | bcm5719-llvm-f322eb5c450162a975123b2c1446a86739d865f5.tar.gz bcm5719-llvm-f322eb5c450162a975123b2c1446a86739d865f5.zip |
clang-format: Fix incorrect space after "<".
Before:
bool a = 2 <::SomeFunction();
After:
bool a = 2 < ::SomeFunction();
llvm-svn: 220505
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 7c2e6c396ec..5642b0f9e65 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -111,6 +111,7 @@ TEST_F(FormatTest, NestedNameSpecifiers) { verifyFormat("vector<::Type> v;"); verifyFormat("::ns::SomeFunction(::ns::SomeOtherFunction())"); verifyFormat("static constexpr bool Bar = decltype(bar())::value;"); + verifyFormat("bool a = 2 < ::SomeFunction();"); } TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) { |