Skip to content

Commit

Permalink
added InsertBraces option of clang formatting and update the needed m…
Browse files Browse the repository at this point in the history
…irrors-clang-format version (ros-controls#1194)
  • Loading branch information
saikishor authored Dec 11, 2023
1 parent 90680f2 commit 6ca76cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ DerivePointerAlignment: false
PointerAlignment: Middle
ReflowComments: true
IncludeBlocks: Preserve
InsertBraces: true
...
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repos:

# CPP hooks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
rev: v15.0.6
hooks:
- id: clang-format

Expand Down

0 comments on commit 6ca76cd

Please sign in to comment.