From 9509f18836479f70467337f64bffabe0dab6179e Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 5 May 2014 08:08:07 +0000 Subject: clang-format: Fix import statements with ColumnLimit: 0 These used to interact badly with AlwaysBreakBeforeMultilineStrings. llvm-svn: 207955 --- clang/unittests/Format/FormatTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') 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); } //===----------------------------------------------------------------------===// -- cgit v1.2.3