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

Update code style formatting configuration (clang-format) #1677

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Simran-B
Copy link
Collaborator

Based on Google style as of clang-format v10.0.1

ColumnLimit raised from 80 to 100 (unclear where 120 came from)

CMake integration inspired by https://arcanis.me/en/2015/10/17/cppcheck-and-clang-format#clang-cmake

Formatting the code with cmake --build . --target format appears to affect all files. It looks like the current code style is different from Google's in various smaller aspects.

clang-format --style=Google --dump-config > .clang-format

Adjusted ColumnLimit to 100
Usage: cmake --build . --target format
@Simran-B Simran-B added the Governance Administrative subject about Olive as a project label Jul 19, 2021
@Simran-B Simran-B self-assigned this Jul 19, 2021
@ThomasWilshaw
Copy link
Collaborator

Olive is about to undergo some largish code refactoring and I wanted to check on the status of old PRs before we do that. Do you plan to update/continue with the PR? Thanks

@Simran-B
Copy link
Collaborator Author

Still relevant and the refactoring doesn't have much of an impact on this work, except that the style should be enforced in all repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Governance Administrative subject about Olive as a project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants