[clang-tools-extra] [clang-tidy] Avoid recommending links to non-free coding guidelines (PR #160745)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 26 02:24:48 PDT 2025
carlosgalvezp wrote:
> But I guess we allow generic checks that "happen to be" Misra/autosar. Like the recent `avoid-default-lambda-capture`. It's one of Misra guidelines but I didn't know that..
Yep, I don't see any issue with that.
Worth noting is that checks _may_ look the same as the MISRA/AUTOSAR rule but actually not check it exactly as it's formulated. Especially the latest MISRA C++:2023 guidelines have a very short rule headline, like "Avoid `reinterpret_cast", but then in the expansion there's many exceptions to the rule, which e.g. `cppcoreguidelines-pro-type-reinterpret-cast` does not implement.
https://github.com/llvm/llvm-project/pull/160745
More information about the cfe-commits
mailing list