[clang-tools-extra] [clang-tidy] Adjust size-empty doc because C++11 size() is constant-time (PR #117629)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 18:03:05 PST 2024


HerrCai0907 wrote:

> In such case claim is still valid

I think we should remove the discussion about efficient in claim since it is misleading after C++11. For self-defined container, because implement of empty and size can be totally different, this claim is still misleading.


https://github.com/llvm/llvm-project/pull/117629


More information about the cfe-commits mailing list