[PATCH] D75244: [clang-format] Recognize C# named argument colons as a token type
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 27 05:30:04 PST 2020
krasimir accepted this revision.
krasimir added a comment.
This revision is now accepted and ready to land.
This is very nice! Brings the C# handling of the colon closer to other languages.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3499
const FormatToken &Left = *Right.Previous;
-
+ if (Style.isCSharp()) {
+ if (Left.is(TT_CSharpNamedArgumentColon) ||
----------------
nit: please put this as an else if into the "// Language-specific stuff" section below.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75244/new/
https://reviews.llvm.org/D75244
More information about the cfe-commits
mailing list