[PATCH] D148467: [clang-format] Add a new AfterCSharpProperty to BraceWrapping

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 17 00:40:11 PDT 2023


owenpan added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:5007-5010
+       (Left.is(tok::semi) && Left.Previous &&
+        Left.Previous->is(Keywords.kw_get) && Right.is(tok::r_brace)) ||
+       (Left.is(tok::semi) && Left.Previous &&
+        Left.Previous->is(Keywords.kw_set) && Right.is(tok::r_brace)))) {
----------------



================
Comment at: clang/unittests/Format/FormatTestCSharp.cpp:1614
+               "    string Foo { set; get; }\n"
+               "}\n",
+               Style);
----------------
Ditto below.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148467/new/

https://reviews.llvm.org/D148467



More information about the cfe-commits mailing list