Wrong formatting settings clang-tidy in C++ template project
2 unresolved threads
2 unresolved threads
Compare changes
+ 10
− 7
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
It's been a while since I did active C++ development within ASTRON. But we used to have some standards:
its
(ortheir
for static class variables)Insights may have changed, though. @wever should now about current SKA conventions (which are not necessarily ASTRON's conventions).
In team Schaap we use GoogleStyle, which has its own naming conventions. https://google.github.io/styleguide/cppguide.html#Naming
GoogleStyle is on of the SKA style guides too,
@wever the google style is using CamelCase (or PascalCase) for methods. I can add that to the comment or even set is as a default if we want to go into that direction.
@loose For function names do you mean snake_case or camelBack (sometimes named camelCase)? About the prefixes: if we wont to go into that direction we ofc can add that as well but probably should first decide on a (common) style.
I meant camelBack (I thought that was usually referred to as snakeCase).
I think referring to a style-guide can't hurt. Google's is quite nice. (I really like they provide rationales for their choices, so you can see whether their reasoning applies to your organization.)
If there is no ASTRON sanctioned style we can make the default Google-style and hope others will start to use the same style. I really like it when code has a consistent style, that makes understanding it a lot easier.
For what it's worth. Here's our (20 year old!) ASTRON coding standard. coding_standard_C++_v2.1.pdf
Interesting, at that time ASTRON still used CVS ;-) But indeed this document is quite dated and it's not provided to new developers during their onboarding.
I wouldn't be against reviving this document.
We could pick this up in the CI/CD group. Maybe good to discuss within Team Schaap too.
changed this line in version 2 of the diff