diff options
| author | Daniel Jasper <djasper@google.com> | 2014-05-05 08:08:07 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-05-05 08:08:07 +0000 |
| commit | 9509f18836479f70467337f64bffabe0dab6179e (patch) | |
| tree | abfb479b41a901d1d3d1f77717d06cfd455a11ff /clang/unittests/Format/FormatTest.cpp | |
| parent | 3089608172d0c74225e01928c3c4fa4dd97fd750 (diff) | |
| download | bcm5719-llvm-9509f18836479f70467337f64bffabe0dab6179e.tar.gz bcm5719-llvm-9509f18836479f70467337f64bffabe0dab6179e.zip | |
clang-format: Fix import statements with ColumnLimit: 0
These used to interact badly with AlwaysBreakBeforeMultilineStrings.
llvm-svn: 207955
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 62534c6fbae..009df106e4d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4928,6 +4928,11 @@ TEST_F(FormatTest, HandlesIncludeDirectives) { // Protocol buffer definition or missing "#". verifyFormat("import \"aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaa\";", getLLVMStyleWithColumns(30)); + + FormatStyle Style = getLLVMStyle(); + Style.AlwaysBreakBeforeMultilineStrings = true; + Style.ColumnLimit = 0; + verifyFormat("#import \"abc.h\"", Style); } //===----------------------------------------------------------------------===// |

