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

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 24 03:05:21 PDT 2021


krasimir marked an inline comment as done.
krasimir 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)) {
----------------
MyDeveloperDay wrote:
> is it only ever "get"?
This should also apply to setters and functions; updated.

Thank you!


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