[PATCH] D44816: [clang-format] Do not insert space before closing brace in ObjC dict literal
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 27 05:27:50 PDT 2018
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Generally looks good, one minor simplification.
================
Comment at: lib/Format/TokenAnnotator.cpp:2484
+ if (Right.is(tok::r_brace) && Right.MatchingParen &&
+ Right.MatchingParen->is(TT_DictLiteral) &&
+ Right.MatchingParen->Previous &&
----------------
Could you use Right.MatchingParen->endsSequence(TT_DictLiteral, tok::at) here?
Repository:
rC Clang
https://reviews.llvm.org/D44816
More information about the cfe-commits
mailing list