[llvm-bugs] [Bug 49175] New: clang-format: AlignConsecutiveDeclarations doesn't handle pointer properly
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 14 02:42:29 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49175
Bug ID: 49175
Summary: clang-format: AlignConsecutiveDeclarations doesn't
handle pointer properly
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: darwin.xu at icloud.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 24523
--> https://bugs.llvm.org/attachment.cgi?id=24523&action=edit
clang-format configuration file
clang-format doesn't handle this code properly:
---The expected code------------------
unsigned int* a;
int* b;
unsigned int Const* c;
--------------------------------------
---The actual code after formatting---
unsigned int* a;
int* b;
unsigned int Const* c;
--------------------------------------
It is weird that if I change "Const" into "const" it works fine.
--
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/20210214/0ccdeb45/attachment.html>
More information about the llvm-bugs
mailing list