[PATCH] D76850: clang-format: Fix pointer alignment for overloaded operators (PR45107)
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 27 03:10:29 PDT 2020
hans marked an inline comment as done.
hans added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2806
+ if (Previous->is(tok::identifier) || Previous->isSimpleTypeSpecifier()) {
+ Previous = Previous->Previous;
+ continue;
----------------
krasimir wrote:
> Consider using `Previous->getPreviousNonComment()` here and below to jump over comments.
Thanks! Doing this, and adding a test that requires it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76850/new/
https://reviews.llvm.org/D76850
More information about the cfe-commits
mailing list