https://llvm.org/bugs/show_bug.cgi?id=31588
Bug ID: 31588
Summary: [clang-format] Java string literal concatenation does
not respect BreakBeforeBinaryOperators option
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
*Format settings (.clang-format)*
---
Language: Java
BreakBeforeBinaryOperators: Always
...
*Input:*
// operator+ used with string literals (BUG)
String foo = "aaaaaaaaaaa" + "bbbbbbbbb" + "ccccccccccc" + "ddddddddd" +
"eeeeeeeeeeeeee" + "ffffffffff";
// operator+ used with string literals and variables (BUG)
String foo = aaaaaaaaaaa + "bbbbbbbbb" + ccccccccccc + "ddddddddd" +
"eeeeeeeeeeeeee" + "ffffffffff";
// operator+ used with variables (OK)
String bar = aaaaaaaaaaa + bbbbbbbbb + ccccccccccc + ddddddddd + eeeeeeeeeeeeee
+ ffffffffff;
*Output:*
// operator+ used with string literals (BUG)
String foo = "aaaaaaaaaaa"
+ "bbbbbbbbb"
+ "ccccccccccc"
+ "ddddddddd"
+ "eeeeeeeeeeeeee"
+ "ffffffffff";
// operator+ used with string literals and variables (BUG)
String foo = aaaaaaaaaaa + "bbbbbbbbb" + ccccccccccc + "ddddddddd"
+ "eeeeeeeeeeeeee"
+ "ffffffffff";
// operator+ used with variables (OK)
String bar = aaaaaaaaaaa + bbbbbbbbb + ccccccccccc + ddddddddd +
eeeeeeeeeeeeee + ffffffffff;
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs