[PATCH] D99458: [clang-format] Fix east const pointer alignment of operators
Nico Rieck via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 27 10:30:24 PDT 2021
nrieck created this revision.
nrieck requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch fixes left pointer alignment after pointer qualifiers of
operators. Currently "operator void const*()" is formatted with a space between
const and pointer despite setting PointerAlignment to Left.
AFAICS this has been broken since clang-format 10.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99458
Files:
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99458.333678.patch
Type: text/x-patch
Size: 6113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210327/5b7710b9/attachment-0001.bin>
More information about the cfe-commits
mailing list