[PATCH] D100953: clang-format: [JS] do not wrap after `asserts`

Hana Joo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 21 07:25:36 PDT 2021


h-joo accepted this revision.
h-joo added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3856
       return false; // Otherwise automatic semicolon insertion would trigger.
+    if (NonComment && NonComment->is(tok::identifier) &&
+        NonComment->TokenText == "asserts")
----------------
Not for this PR : The JS specific part of the code is growing, please consider splitting it


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100953



More information about the cfe-commits mailing list