[PATCH] D127873: [clang-format] Fix misplacement of `*` in declaration of pointer to struct
Jack Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 22 00:15:13 PDT 2022
jackhong12 updated this revision to Diff 438921.
jackhong12 marked an inline comment as done.
jackhong12 added a comment.
I have added a variable for `MatchingLBrace->getPreviousNonComment()`.
Thanks. I am not sure which modification will be better, the patch I submitted or the following code.
FormatToken *BeforeLBraceToken = nullptr;
BeforeLBraceToken = MatchingLBrace->getPreviousNonComment();
if (BeforeLBraceToken && BeforeLBraceToken->is(TT_TemplateCloser))
CHANGES SINCE LAST ACTION
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5052 bytes
Desc: not available
More information about the cfe-commits