Skip to content

Commit

Permalink
Updated .clang-format and .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cbnolok committed Sep 10, 2024
1 parent 3719de4 commit 0998d8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ColumnLimit: 160
##-- Alignment
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignConsecutiveDeclarations: false
#AlignEscapedNewlinesLeft: false
AlignTrailingComments: true

Expand Down
14 changes: 10 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ root = true
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Optional: git will commit as lf, this will only affect local files
end_of_line = lf

[*.txt]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false

Expand All @@ -18,15 +24,15 @@ indent_style = tab

[*.{py,yml,sh,cmake}]
indent_style = space
indent_size = 2
indent_size = 4

[*.{py,yml,sh,cmake}.in]
indent_style = space
indent_size = 2
indent_size = 4

[CMakeLists.txt]
indent_style = space
indent_size = 2
indent_size = 4

[*.{c,h,cpp,cxx,hpp}]
charset = utf-8
Expand Down

0 comments on commit 0998d8f

Please sign in to comment.