Open cpviolator opened 4 years ago
what we want to use here is probably clang-tidy
Yes. Note that a ton of the modernize checks could probably be applied to QUDA and we should strive to modernize files that are touched anyway. Looking into this has been on my list for quite a while now.
Shall we make this a goal for 2.0?
Sure. We should work out a strategy. Some early thoughts
...
For reference as it seems useful: https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/
Library wide, QUDA should use nullptr rather than NULL. A bash script that incrementally changes and commits should do the trick, specifically targeting
NULL)
,,NULL
andNULL;
to avoid messing withQUDA_NULL_FIELD_CREATE
and comments.