[llvm-bugs] [Bug 31588] New: [clang-format] Java string literal concatenation does not respect BreakBeforeBinaryOperators option
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 9 12:36:26 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: jwalczak at opera.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170109/d4d4ceba/attachment.html>
More information about the llvm-bugs
mailing list