diff options
| author | Daniel Jasper <djasper@google.com> | 2016-05-27 08:59:34 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2016-05-27 08:59:34 +0000 |
| commit | 99302edd1c63639204f0f1a8799384995dba4ca1 (patch) | |
| tree | 6e825b13bb4886c3031c1eed8e24c4bf8cf1207b /clang/unittests/Format | |
| parent | 5fa681ee781dc41baf0813a778e73bd31bb8443b (diff) | |
| download | bcm5719-llvm-99302edd1c63639204f0f1a8799384995dba4ca1.tar.gz bcm5719-llvm-99302edd1c63639204f0f1a8799384995dba4ca1.zip | |
clang-format: Allow splitting the line after /**/-comments.
While it might change the meaning of the comment in rare circumstances,
it is better than violating the column limit.
llvm-svn: 270975
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 5effc3162f7..09149f1d885 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1143,6 +1143,8 @@ TEST_F(FormatTest, UnderstandsBlockComments) { " aaaaaaaaaaaaaaaaaa ,\n" " aaaaaaaaaaaaaaaaaa) { /*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa*/\n" "}")); + verifyFormat("f(/* aaaaaaaaaaaaaaaaaa = */\n" + " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);"); FormatStyle NoBinPacking = getLLVMStyle(); NoBinPacking.BinPackParameters = false; |

