[PATCH] D108620: [clang-format] keep TypeScript argument decorators in line

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 24 02:48:31 PDT 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:497
   if (Style.Language == FormatStyle::LK_JavaScript &&
-      Previous.is(tok::r_paren) && Previous.is(TT_JavaAnnotation)) {
+      Current.TokenText == "get" && Previous.is(tok::r_paren) &&
+      Previous.is(TT_JavaAnnotation)) {
----------------
is it only ever "get"?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108620



More information about the cfe-commits mailing list