[PATCH] D90908: [clang-format] do not break before { in JS comments

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 00:50:53 PST 2020


krasimir updated this revision to Diff 303354.
krasimir added a comment.

update test case range


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90908

Files:
  clang/unittests/Format/FormatTestJS.cpp


Index: clang/unittests/Format/FormatTestJS.cpp
===================================================================
--- clang/unittests/Format/FormatTestJS.cpp
+++ clang/unittests/Format/FormatTestJS.cpp
@@ -2185,7 +2185,7 @@
                " */\n",
                getGoogleJSStyleWithColumns(20));
   // cases where '{' is around the column limit
-  for (int ColumnLimit = 6; ColumnLimit < 10; ++ColumnLimit) {
+  for (int ColumnLimit = 6; ColumnLimit < 13; ++ColumnLimit) {
     verifyFormat("/**\n"
                  " * @param {type}\n"
                  " */",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90908.303354.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201106/48502f09/attachment.bin>


More information about the cfe-commits mailing list