Project 'eclipse/simopenpass/scenario_api' was moved to 'eclipse/openpass/mantle-api'. Please update any links and bookmarks that may still have the old path.
As discussed in the sync meeting on 10.11.2022, we need to align on some Clang Tidy checks for our repository. Thus, please provide suggestions and examples here in the ticket. After collecting all inputs, we will proceed by consolidating and come up with a first draft to start with.
@adascri Have you already discussed, if you want the ClangTidy config to have minimal impact (at least at first) or if you want to take the opportunity to modernize and homogenize the codebase?
Especially the cppcoreguidelines-* and modernize-* categories of checks would have quite an impact.
@mstump We have not made a final decision on this yet. Instead, we will have a look at all the suggestions and come up with a proposal. My personal opinion is that we need to find some compromise between not having very few rules only and having to refactor quite a lot. Thus, it depends on the effort for adapting the codebase which we will see when applying the rules.
Thank you for your proposal! The cppcoreguidelines also came up in our meeting on Thursday.
Many of the rules in question offer automatic fixes (see Clang-Tidy Checks), so even if we choose to apply them all, the time and effort would be manageable. My suggestion would be to apply all the rules that do not break the API, and discuss those that do one by one.
@rparisha2 Thank you for the detailed analysis.
I will work through the list and adjust the configs accordingly.
I would however strongly advise against disabling *-qualified-auto.
I remember a bug in some internal code, where the & was missing on a variable returned from a function.
The variable was copied (default behavior) instead of referenced.
The supposed reference was then assigned to, which of course did not have the intended effect.