diff options
-rw-r--r-- | .clang-format | 2 | ||||
-rw-r--r-- | tests/manual/clang-format-for-qtc/test.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 25df05eb26..953e0b44cd 100644 --- a/.clang-format +++ b/.clang-format @@ -53,7 +53,7 @@ BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false BreakConstructorInitializers: BeforeComma BreakAfterJavaFieldAnnotations: false -BreakStringLiterals: false +BreakStringLiterals: true ColumnLimit: 100 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false diff --git a/tests/manual/clang-format-for-qtc/test.cpp b/tests/manual/clang-format-for-qtc/test.cpp index e5afaff130..b3cf22eaca 100644 --- a/tests/manual/clang-format-for-qtc/test.cpp +++ b/tests/manual/clang-format-for-qtc/test.cpp @@ -656,7 +656,11 @@ void extremeFunction( ++uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuunbelievableLongValue; extremeFunction( - "some super duper super duper super duper super duper super duper super duper super duper long"); + "some super duper super duper super duper super duper super duper super duper long"); + + // BreakStringLiterals splits the string. + extremeFunction("some super duper super duper super duper super duper super duper super duper " + "super duper long"); } void extremeFunction2(int parameter1, |