diff options
| author | Daniel Jasper <djasper@google.com> | 2014-07-28 13:19:58 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-07-28 13:19:58 +0000 |
| commit | 6ba1638f0b1062da45933dbdf8538f121cbd0e2c (patch) | |
| tree | 093bc64fa9949b5d076eab6e1c9ec52e027d625f /clang/unittests/Format/FormatTest.cpp | |
| parent | 8afad61a9336e8f212ec551a38a1e30411d82ff4 (diff) | |
| download | bcm5719-llvm-6ba1638f0b1062da45933dbdf8538f121cbd0e2c.tar.gz bcm5719-llvm-6ba1638f0b1062da45933dbdf8538f121cbd0e2c.zip | |
clang-format: Improve operator and template recognition.
Before:
static_assert(is_convertible < A &&, B > ::value, "AAA");
After:
static_assert(is_convertible<A &&, B>::value, "AAA");
llvm-svn: 214075
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 28bdf3293aa..c942ae926dc 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4578,6 +4578,7 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) { verifyFormat("aaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaaaa >> aaaaa);", getLLVMStyleWithColumns(60)); + verifyFormat("static_assert(is_convertible<A &&, B>::value, \"AAA\");"); } TEST_F(FormatTest, UnderstandsBinaryOperators) { @@ -4883,7 +4884,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { // FIXME: We cannot handle this case yet; we might be able to figure out that // foo<x> d > v; doesn't make sense. - verifyFormat("foo<a < b && c> d > v;"); + verifyFormat("foo<a<b && c> d> v;"); FormatStyle PointerMiddle = getLLVMStyle(); PointerMiddle.PointerAlignment = FormatStyle::PAS_Middle; |

