Coding Standards
How To Code.
Last updated
Was this helpful?
How To Code.
Last updated
Was this helpful?
We use the and indent with 2-wide spaces. 80-characters wide. Only exception is that we lead function names with a lower-case letter to distinguish from classes (thisIsMyFunction
in our style, vs ThisIsMyFunction
in pure Google C++).
Take some time to set up an autoformatter in your editor. Keep in mind that the eclipse autoformatter does not put brackets in the right place, but does most of the rest.
For extreme cases, use clang-format AND BE VERY CAREFUL TO ONLY RUN THIS ON YOUR OWN PACAKGE. This will autoformat everything in the package: