Skip to content

Commit c3e1c31

Browse files
authored
build: upgrade clang-format to v18
PR-URL: nodejs#53957 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f468509 commit c3e1c31

File tree

3 files changed

+15
-311
lines changed

3 files changed

+15
-311
lines changed

.clang-format

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ AlignEscapedNewlines: Right
99
AlignOperands: true
1010
AlignTrailingComments: true
1111
AllowAllParametersOfDeclarationOnNextLine: true
12-
AllowShortBlocksOnASingleLine: false
12+
AllowShortBlocksOnASingleLine: Never
1313
AllowShortCaseLabelsOnASingleLine: false
1414
AllowShortFunctionsOnASingleLine: Inline
1515
AllowShortIfStatementsOnASingleLine: true
16-
AllowShortLoopsOnASingleLine: true
16+
AllowShortLoopsOnASingleLine: false
1717
AlwaysBreakAfterDefinitionReturnType: None
1818
AlwaysBreakAfterReturnType: None
1919
AlwaysBreakBeforeMultilineStrings: false

tools/clang-format/package-lock.json

+12-305
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/clang-format/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "node-core-clang-format",
3-
"version": "1.0.0",
42
"description": "Formatting C++ files for Node.js core",
5-
"license": "MIT",
63
"dependencies": {
7-
"clang-format": "^1.8.0"
4+
"@wasm-fmt/clang-format": "^18.1.8"
85
}
96
}

0 commit comments

Comments
 (0)