[PATCH] D88227: [clang-format] Add a SpaceBeforePointerQualifiers style option
Jessica Clarke via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 06:54:14 PDT 2020
jrtc27 added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2874-2889
+ if (Left.is(TT_PointerOrReference)) {
+ if (Style.SpaceBeforePointerQualifiers &&
+ Right.canBePointerOrReferenceQualifier())
+ return true;
return Right.Tok.isLiteral() || Right.is(TT_BlockComment) ||
(Right.isOneOf(Keywords.kw_override, Keywords.kw_final) &&
!Right.is(TT_StartOfName)) ||
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88227/new/
https://reviews.llvm.org/D88227
More information about the cfe-commits
mailing list