diff options
| author | Daniel Jasper <djasper@google.com> | 2014-04-14 13:15:29 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-04-14 13:15:29 +0000 |
| commit | 866468ae4ddc13a8aa317c08071c55768bae9f50 (patch) | |
| tree | dade1b47739b26eaa7a72707683391c6255efa4a /clang/unittests/Format/FormatTest.cpp | |
| parent | cb9c3cfb58373b937742ae8a6b030ea9097be79a (diff) | |
| download | bcm5719-llvm-866468ae4ddc13a8aa317c08071c55768bae9f50.tar.gz bcm5719-llvm-866468ae4ddc13a8aa317c08071c55768bae9f50.zip | |
clang-format: Fix regression caused by r206165.
llvm-svn: 206173
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index a98e3d55556..45ad5fe39ef 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4584,6 +4584,16 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { // FIXME: Is there a way to make this work? // verifyIndependentOfContext("MACRO(A *a);"); + EXPECT_EQ("#define OP(x) \\\n" + " ostream &operator<<(ostream &s, const A &a) { \\\n" + " return s << a.DebugString(); \\\n" + " }", + format("#define OP(x) \\\n" + " ostream &operator<<(ostream &s, const A &a) { \\\n" + " return s << a.DebugString(); \\\n" + " }", + getLLVMStyleWithColumns(50))); + // 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;"); |

