[llvm-bugs] [Bug 28065] New: clang-format incorrectly aligns backslash
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 9 01:52:11 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28065
Bug ID: 28065
Summary: clang-format incorrectly aligns backslash
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: alexandre.rames at linaro.org
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
I have reduced the test-case to the following:
$ cat test_file.h
#define MACRO(V) \
V(Rt2) /* one more char */ \
V(Rs) /* than here */ \
/* comment 3 */ \
V(other)
$ clang-format test_file.h
#define MACRO(V) \
V(Rt2) /* one more char */ \
V(Rs) /* than here */ \
/* comment 3 */ \
V(other)
`clang-format` inserts a space that should not be there.
I have double-checked this on ArchLinux with
$ clang-format --version
clang-format version 3.8.0 (tags/RELEASE_380/final)
But others have observed this with clang-format 3.6 and 3.7 on Ubuntu.
--
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/20160609/36b19c9b/attachment.html>
More information about the llvm-bugs
mailing list