[PATCH] D127873: [clang-format] Fix misplacement of `*` in declaration of pointer to struct
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 14 02:52:16 PDT 2022
krasimir added a comment.
Appears that this regressed examples like this:
// before
int i = int{16} * 1024;
// after
int i = int{16}* 1024;
Naively it looks like in all added examples, the token preceding the matching `{` of the `}` is one of `struct`, `class`, `union`, `enum`, or a `>`. Could we adapt this heuristic to only apply `TT_PointerOrReference` in cases like this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127873/new/
https://reviews.llvm.org/D127873
More information about the cfe-commits
mailing list