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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to