@@ -49,7 +49,7 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C#
code.
supported:
CSharp: .cs
Java: .java
- Ja
@@ -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
@@ -87,7 +87,7 @@ static cl::opt AssumeFileName(
"supported:\n"
" CSharp: .cs\n"
" Java: .java\n"
- " JavaScript: .mjs .js .ts\n"
+ " JavaScript: .cjs .mjs .js .ts\n"
owenca wrote:
```suggestio
https://github.com/d3x0r updated
https://github.com/llvm/llvm-project/pull/118188
>From 8ce527dc2cc7ac285f782648838664491abffc30 Mon Sep 17 00:00:00 2001
From: d3x0r
Date: Sat, 30 Nov 2024 02:32:40 -0800
Subject: [PATCH 1/2] Add *.cjs handling for JavaScript Language.
---
clang/lib/Format/For
owenca wrote:
You need to also update the command-line input file extensions, docs, and
git-clang-format.
https://github.com/llvm/llvm-project/pull/118188
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/l
https://github.com/d3x0r edited https://github.com/llvm/llvm-project/pull/118188
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang-format
Author: Jim B (d3x0r)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/118188.diff
1 Files Affected:
- (modified) clang/lib/Format/Format.cpp (+1)
``diff
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Fo
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
https://github.com/d3x0r created
https://github.com/llvm/llvm-project/pull/118188
None
>From 8ce527dc2cc7ac285f782648838664491abffc30 Mon Sep 17 00:00:00 2001
From: d3x0r
Date: Sat, 30 Nov 2024 02:32:40 -0800
Subject: [PATCH] Add *.cjs handling for JavaScript Language.
---
clang/lib/Format/F