[PATCH] D74043: [clang-format] Do not treat C# attribute targets as labels

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 12:10:58 PST 2020


MyDeveloperDay added a comment.

LGTM, thanks for the patch (I've seen this in the wild where the AssemblyInfo.cs gets a bit messed up.



================
Comment at: clang/lib/Format/FormatTokenLexer.cpp:287
+  auto &Target = *(Tokens.end() - 2);
+  auto &Colon = *(Tokens.end() - 1);
+
----------------
+1 for just supporting what it can be.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74043





More information about the cfe-commits mailing list