Skip to content

Commit

Permalink
Update clang format style to be rust-like
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund committed Apr 10, 2024
1 parent e38083d commit 54014a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ CheckOptions:
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case}
- { key: readability-identifier-naming.LocalVariableCase, value: lower_case}
- { key: readability-identifier-naming.FunctionCase, value: camelBack}
- { key: readability-identifier-naming.FunctionCase, value: lower_case}
- { key: readability-identifier-naming.FunctionIgnoredRegexp, value: '^to_json$|^from_json$'}
- { key: readability-identifier-naming.ClassMethodCase, value: camelBack}
- { key: readability-identifier-naming.ClassMethodCase, value: lower_case}
- { key: readability-identifier-naming.ClassMethodIgnoredRegexp, value: '^to_json$|^from_json$'}
- { key: readability-identifier-naming.ParameterCase, value: lower_case}
- { key: readability-identifier-naming.ParameterIgnoredRegexp, value: '^j$'}
- { key: readability-identifier-naming.EnumCase, value: CamelCase}
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase}
- { key: readability-identifier-naming.ConstantParameterCase, value: lower_case}
- { key: readability-identifier-naming.ConstexprVariableCase,, value: UPPER_CASE}
- { key: readability-identifier-naming.ConstantParameterIgnoredRegexp, value: lower_case}
- { key: readability-identifier-naming.TypedefCase, value: CamelCase}
- { key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic, value: 'true'}
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Please edit this text to include a summary of the change and which issue is fixe
- [ ] code naming scheme follows the convention:

Style | Elements
------------ | ---------------------
`PascalCase` | classes, namespaces
`camelCase` | functions
`snake_case` | variables
------------ | --------------------------
`CamelCase` | classes, namespaces, enums
`lower_case` | functions, variables, enum constants
`UPPER_CASE` | constexpr variables
9 changes: 4 additions & 5 deletions docs/_docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,10 @@ the style configuration file [`.clang-format`](https://github.com/mlund/faunus/b
Also, adhere to the following naming conventions:

Style | Elements
------------ | -------------------------
`CamelCase` | classes, namespaces
`camelBack` | functions
`snake_case` | variables

------------ | --------------------------
`CamelCase` | classes, namespaces, enums
`lower_case` | functions, variables, enum constants
`UPPER_CASE` | constexpr variable

## Creating a conda package (development usage)

Expand Down

0 comments on commit 54014a2

Please sign in to comment.