carlosgalvezp wrote:

> It can also happen in user defined class.

Yes. But it's unclear what the behavior of the check should be. For 
`std::array`, it's clear, because one must not touch the internal element. For 
a user-defined type, "it depends" on how the user wants to design their struct. 

If the need comes, I envision we will need some sort of option so people can 
add other types on top `std::array` to be excluded from the check. But let's 
cross that bridge when we get there :) 

https://github.com/llvm/llvm-project/pull/134774
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to