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

Add .clang-format file #1024

Open
eschnett opened this issue Jun 27, 2021 · 3 comments
Open

Add .clang-format file #1024

eschnett opened this issue Jun 27, 2021 · 3 comments

Comments

@eschnett
Copy link
Contributor

I like using clang-format to format source files. This takes much of the tedium out of editing C++ files.

Would you consider adding a .clang-format file to the repo? This would define your preferred indentation style.

Ideally, this would be used for all source files. To avoid churn, one could begin to use this only to format newly added files, or newly added functions.

@franzpoeschel
Copy link
Contributor

I've started experimenting with this on #1032.

@franzpoeschel franzpoeschel mentioned this issue Jul 7, 2021
7 tasks
@ax3l
Copy link
Member

ax3l commented Jul 8, 2021

Sounds good to me, let's iterate in the PR.

@ax3l
Copy link
Member

ax3l commented Aug 11, 2021

Found today: CMake targets
https://github.com/TheLartians/Format.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants