[PATCH] D35847: clang-format: Fix left pointer alignment after delctype/typeof
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 4 01:37:51 PDT 2017
krasimir added inline comments.
================
Comment at: lib/Format/TokenAnnotator.cpp:1402
+ PrevToken->MatchingParen->getPreviousNonComment() &&
+ PrevToken->MatchingParen->getPreviousNonComment()->isOneOf(
+ tok::kw_typeof,
----------------
It would be cool if you extract the calls to getPreviousNonComment to a variable, saving the double iteration.
https://reviews.llvm.org/D35847
More information about the cfe-commits
mailing list