[llvm-bugs] [Bug 49820] New: clang-format: break added to macro define with ColumnLimit: 0
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 2 08:19:01 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49820
Bug ID: 49820
Summary: clang-format: break added to macro define with
ColumnLimit: 0
Product: clang
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: wim.leflere at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Formatting following code with 'ColumnLimit: 0'
#define STRINGIFY(t) #t
#define MAKEVERSIONSTRING(x, y, z, build) STRINGIFY(x) "." STRINGIFY(y) "."
STRINGIFY(z) "." STRINGIFY(build)
Results in
#define STRINGIFY(t) #t
#define MAKEVERSIONSTRING(x, y, z, build) STRINGIFY(x) \
"." STRINGIFY(y) "." STRINGIFY(z) "." STRINGIFY(build)
No break should be added as the column limit is 0 (unlimited).
If the column limit is set to e.g. 120, the break is not added.
--
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/20210402/ed38aee9/attachment.html>
More information about the llvm-bugs
mailing list