[PATCH] D35847: clang-format: Fix left pointer alignment after delctype/typeof
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 3 07:02:33 PDT 2017
krasimir added inline comments.
================
Comment at: lib/Format/TokenAnnotator.cpp:2206
+ return (Left.is(tok::r_paren) && Line.MightBeFunctionDecl &&
+ !(Left.MatchingParen && Left.MatchingParen->Previous &&
+ Left.MatchingParen->Previous->isOneOf(tok::kw_typeof,
----------------
Please use `FormatToken::getPreviousNonComment` here and add a test like `typedef typeof/*comment*/(int(int, int))* MyFuncPtr;`
https://reviews.llvm.org/D35847
More information about the cfe-commits
mailing list