[llvm-bugs] [Bug 33585] New: clang-format is not idempotent with trailing // comments
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jun 25 10:16:07 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33585
Bug ID: 33585
Summary: clang-format is not idempotent with trailing //
comments
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: evan.exe at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Repro:
int main() {
double abcDEFghiJKLmno; // Test comment
int abcDEFghiJKL; // This is a test of line wrapping. Line wrapping should
be idempotent.
}
First iteration:
int main() {
double abcDEFghiJKLmno; // Test comment
int abcDEFghiJKL; // This is a test of line wrapping. Line wrapping
should be
// idempotent.
}
Second iteration:
int main() {
double abcDEFghiJKLmno; // Test comment
int abcDEFghiJKL; // This is a test of line wrapping. Line wrapping should
be
// idempotent.
}
Output of "clang-format --version" (installed with "brew install
clang-format"):
clang-format version 5.0.0 (tags/google/stable/2017-03-17)
--
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/20170625/6c9f81c0/attachment.html>
More information about the llvm-bugs
mailing list