Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a .clang-format configuration file to enforce the project's con… #78

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

dkozinski
Copy link
Collaborator

…sistent coding style

Example usage: clang-format -i *.cpp *.h

…sistent coding style

Example usage: clang-format -i *.cpp *.h
.clang-format Outdated
AfterFunctionDefinitionName: false

SpaceAfterCStyleCast: true
#SpaceBeforeCStyleCast: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not comment line, just switch to false if it required.

- Added a comment recommending clang-format version 19 or higher
- Updated alignment settings for consecutive declarations, assignments, and macros
- Adjusted the column limit from 160 to 120
- Added additional brace wrapping
@dariusz-f dariusz-f merged commit e418a0f into master Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants