Skip to content

Commit

Permalink
Format Open RV codebase (#656)
Browse files Browse the repository at this point in the history
### Format Open RV codebase

### Summarize your change.

This PR formats the Open RV codebase with the new .clang-format that was
recently added. Some small tweaks were made to the .clang-format to make
sure no options could modify the code in a way that would break it. Note
that the pub and WFObj submodules are also being formatted here:
shotgunsoftware/openrv-pub#20 and
shotgunsoftware/openrv-WFObj#2

### Describe the reason for the change.

The code needed to be formatted with the new .clang-format

### Describe what you have tested and on which operating system.

Open RV is building and working with any issues on MacOS Sonoma.

---------

Signed-off-by: Éloïse Brosseau <[email protected]>
  • Loading branch information
eloisebrosseau authored Jan 24, 2025
1 parent 45e5bae commit 9d6b1be
Show file tree
Hide file tree
Showing 1,707 changed files with 522,514 additions and 451,006 deletions.
5 changes: 2 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ IndentPPDirectives: None
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: true
InsertBraces: false
InsertNewlineAtEOF: true
InsertTrailingCommas: None
IntegerLiteralSeparator:
Expand Down Expand Up @@ -101,7 +101,7 @@ PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
PPIndentWidth: -1
QualifierAlignment: Left
QualifierAlignment: Leave
ReferenceAlignment: Pointer
RemoveBracesLLVM: false
RemoveParentheses: Leave
Expand Down Expand Up @@ -148,6 +148,5 @@ SpacesInLineCommentPrefix:
SpacesInParens: Never
SpacesInSquareBrackets: false
Standard: Latest
TabWidth: 8
UseTab: Never
...
2 changes: 0 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Checks: >
-modernize-use-trailing-return-type,
performance-*,
readability-*,
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: 'file'
...
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v19.1.4'
hooks:
- id: clang-format
- id: clang-format
types_or: [c++, c]
Loading

0 comments on commit 9d6b1be

Please sign in to comment.