[llvm-bugs] [Bug 44189] New: clang-format does not remove space between non-macro identifier and ::
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Dec 1 02:30:00 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44189
Bug ID: 44189
Summary: clang-format does not remove space between non-macro
identifier and ::
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: pablomg+llvm at eskapa.be
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
$ cat test.cpp
int class :: test() { return 0; }
$ clang-format -i -style=google test.cpp
$ cat test.cpp
int class ::test() { return 0; }
Expected result:
$ cat test.cpp
int class::test() { return 0; }
This issue is a regression caused by the resolution of bug 31951 with commit
https://github.com/llvm-mirror/clang/commit/f620673a7c74bdd7e427cef0857b22eab09cf44e
>From what I understood from the code, clang-format has no knowledge of macro so
the only way to fix this issue is to declare the macro in the .clang-format
file in a similar fashion than for the StatementMacros
--
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/20191201/f08c2eae/attachment.html>
More information about the llvm-bugs
mailing list