Replies: 5 comments
-
Just wanted to leave a comment to show support, but I have nothing more to add; it's a great idea! |
Beta Was this translation helpful? Give feedback.
-
I'm currently using this file on my system, which seems to bring up quite a lot of issues:
And then I add these for checking case:
For now enabling these casing checks report loads of problems in the files, because everyone seems to use different conventions. Maybe we can add just the Checks for now, until we can agree on the CheckOptions for casing? @Alexays what do you think? |
Beta Was this translation helpful? Give feedback.
-
Created a PR for the initial clang-tidy file: #2595 |
Beta Was this translation helpful? Give feedback.
-
PR has been merged, closing... |
Beta Was this translation helpful? Give feedback.
-
@Alexays I noticed you disabled the clang-tidy GitHub Action, was it because of the variable naming? |
Beta Was this translation helpful? Give feedback.
-
Because this repo is getting contributions by lots of people, different code conventions are often mixed.
I propose we add a clang-tidy file to the repo, so everyone's IDE will let them know what code style to use. clang-format is already present, but I don't think it's enough. Adding a clang-tidy file would not force people to use the conventions, but would encourage them to.
We could fix readability issues like else-after-return, and ensure everyone uses the same casing for methods, classes, and variables
'Modern' C++ stuff like using pass-by-value, using auto to avoid specifying the type twice in one line, or ensuring people use make_shared and make_unique instead of calling the smart pointer's constructor, etc...
Here's the full list of clang-tidy checks we could add: https://clang.llvm.org/extra/clang-tidy/checks/list.html
Beta Was this translation helpful? Give feedback.
All reactions