Skip to content

Commit d87e9ad

Browse files
legendecaspull[bot]
authored andcommitted
Revert "build: upgrade clang-format to v18"
This reverts commit c3e1c31. PR-URL: #54994 Refs: #53957 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 5b425c9 commit d87e9ad

File tree

3 files changed

+311
-15
lines changed

3 files changed

+311
-15
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: Never
12+
AllowShortBlocksOnASingleLine: false
1313
AllowShortCaseLabelsOnASingleLine: false
1414
AllowShortFunctionsOnASingleLine: Inline
1515
AllowShortIfStatementsOnASingleLine: true
16-
AllowShortLoopsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: true
1717
AlwaysBreakAfterDefinitionReturnType: None
1818
AlwaysBreakAfterReturnType: None
1919
AlwaysBreakBeforeMultilineStrings: false

tools/clang-format/package-lock.json

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

tools/clang-format/package.json

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

0 commit comments

Comments
 (0)