[clang] Add `.cjs` extension handling for JavaScript Language. (PR #118188)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 1 20:40:04 PST 2024


================
@@ -94,7 +94,7 @@ def main():
       # Other languages that clang-format supports
       'proto', 'protodevel',  # Protocol Buffers
       'java',  # Java
-      'mjs', 'js',  # JavaScript
+      'cjs', 'mjs', 'js',  # JavaScript
----------------
owenca wrote:

```suggestion
      'js', 'mjs', 'cjs',  # JavaScript
```

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


More information about the cfe-commits mailing list