[llvm-bugs] [Bug 31258] New: clang-format needlessly inserts newline
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Dec 4 15:13:05 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31258
Bug ID: 31258
Summary: clang-format needlessly inserts newline
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
Input:
std::string err_string(
"The variable \"" + name_unused + "\" was set as a build argument\n"
"but never appeared in a declare_args() block in any buildfile.\n\n"
"To view possible args, run \"gn args --list <builddir>\"");
Output:
std::string err_string(
"The variable \"" + name_unused +
"\" was set as a build argument\n"
"but never appeared in a declare_args() block in any buildfile.\n\n"
"To view possible args, run \"gn args --list <builddir>\"");
The newline is not only unnecessary, it also makes the code less clear.
--
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/20161204/639c501b/attachment.html>
More information about the llvm-bugs
mailing list