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

Document code style/formatting #154

Open
alexfru opened this issue Oct 19, 2018 · 1 comment
Open

Document code style/formatting #154

alexfru opened this issue Oct 19, 2018 · 1 comment

Comments

@alexfru
Copy link
Contributor

alexfru commented Oct 19, 2018

If you're using clang-format or something similar, please document the settings, so the contributors can format their code prior to making pull requests.

@bjacob
Copy link
Contributor

bjacob commented Nov 6, 2018

Very good point. I'm using whatever is default on my Google workstation, and from looking around, it seems that this Google style default is available in standard clang-format,

https://clang.llvm.org/docs/ClangFormatStyleOptions.html

by simply putting

  BasedOnStyle: google

in the appropriate section of the .clang-format file , refer to the above page.

Leaving this bug open until this info is included into documentation... probably just README.

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

No branches or pull requests

2 participants