[clang-tools-extra] [clang-tidy] `readability-container-size-empty`: Correctly generating fix hints when size method is called from implicit this (PR #152486)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 8 07:21:07 PDT 2025


================
@@ -182,6 +182,10 @@ Changes in existing checks
   <clang-tidy/checks/portability/template-virtual-member-function>` check to
   avoid false positives on pure virtual member functions.
 
+- Improved :doc:`readability-container-size-empty
+  <clang-tidy/checks/readability/container-size-empty>` check by correctly
+  generating fix hints when size method is called from implicit ``this``.
----------------
EugeneZelenko wrote:

```suggestion
  generating fix-it hints when size method is called from implicit ``this``.
```

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


More information about the cfe-commits mailing list