Skip to content

Commit f010a47

Browse files
vil02debasishbsws
andauthoredSep 1, 2023
chore: enforce InsertNewlineAtEOF in clang-format (TheAlgorithms#4343)
* style: insert newline at eof * style: use `InsertNewlineAtEOF` in `clang-format` * fix: use `clang-format-16` * chore: update clang-format-lint-action to v0.16.2 --------- Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com>
1 parent 78ca465 commit f010a47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+43
-42
lines changed
 

‎.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ IndentGotoLabels: true
8383
IndentPPDirectives: None
8484
IndentWidth: 4
8585
IndentWrappedFunctionNames: false
86+
InsertNewlineAtEOF: true
8687
JavaScriptQuotes: Leave
8788
JavaScriptWrapImports: true
8889
KeepEmptyLinesAtTheStartOfBlocks: true

‎.github/workflows/clang-format-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: DoozyX/clang-format-lint-action@v0.13
12+
- uses: DoozyX/clang-format-lint-action@v0.16.2
1313
with:
1414
source: './src'
1515
extensions: 'java'
16-
clangFormatVersion: 12
16+
clangFormatVersion: 16

0 commit comments

Comments
 (0)