Add .clang-tidy for better style and best practices linting#1680
Add .clang-tidy for better style and best practices linting#1680CobaltSpace wants to merge 1 commit into
Conversation
|
@elsandosgrande It's not related. |
This is what piqued my interest @Simran-B. Eh, I'll look into |
|
|
|
Mhm. So, as far as I can tell from the LLVM documentation — it really needs a dedicated page discussing the differences between the two in detail — |
With a
.clang-tidy, text editors and IDE's that have integration with clang-tidy (or clangd) will be able to complain about anti-patterns, and it can also help with enforcing code style in ways that clang-format can't. clang-tidy is basically a better clang-check.The file currently has what I think is probably a good starting point, which is turning all checks on and then turning off some of the checks that conflict with what has been done. The choice of checks to use is pretty subjective, so project leads may want to refer to https://clang.llvm.org/extra/clang-tidy/checks/list.html and choose which ones they will want to disable/enable.