[llvm-bugs] [Bug 43854] New: [C++] clang-format pointer alignment off in extern method declaration inside of another method
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 30 14:07:21 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43854
Bug ID: 43854
Summary: [C++] clang-format pointer alignment off in extern
method declaration inside of another method
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: Yiqi.Ju at microsoft.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Configuration:
BinPackArguments: false
BinPackParameters: false
PointerAlignment: Left
Found in llvm build 10.0.0+b452de0 (also in earlier builds) when there is a
nested extern method declaration, the point alignment is incorrect. In this
case, only "left alignment" is expected but the pointer is at the center. This
only happens if the "extern" method declaration is inside of another method.
Wrong output:
int foo() {
extern MyTypeB* Nested(Mytype * aaaaaa,
Mytype * bbbbbb,
Mytype * cccccc,
Mytype * dddddd,
Mytype e);
}
Expected output:
int foo() {
extern MyTypeB* Nested(Mytype* aaaaaa,
Mytype* bbbbbb,
Mytype* cccccc,
Mytype* dddddd,
Mytype e);
}
--
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/20191030/a61edafb/attachment-0001.html>
More information about the llvm-bugs
mailing list