[clang] [clang-format] Disable string breaking in JS for now (PR #66372)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 17:38:53 PDT 2023


================
@@ -2783,17 +2783,17 @@ the configuration (without a prefix: ``Auto``).
      const char* x =
          "veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString";
 
-  In C#, Java, and JavaScript:
+  In C# and Java:
 
   .. code-block:: c++
 
      true:
-     var x = "veryVeryVeryVeryVeryVe" +
-             "ryVeryVeryVeryVeryVery" +
-             "VeryLongString";
+     string x = "veryVeryVeryVeryVeryVe" +
+                "ryVeryVeryVeryVeryVery" +
+                "VeryLongString";
 
      false:
-     var x =
+     string x =
          "veryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString";
 
   C# and JavaScript interpolated strings are not broken.
----------------
owenca wrote:

```suggestion
  C# interpolated strings are not broken.
```

https://github.com/llvm/llvm-project/pull/66372


More information about the cfe-commits mailing list