[all-commits] [llvm/llvm-project] 1f67b9: [clang-tidy] Add detection in container's method e...
flovent via All-commits
all-commits at lists.llvm.org
Thu Aug 28 07:58:31 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f67b945ab2164f8f489eca636ccae5f0e58fc8b
https://github.com/llvm/llvm-project/commit/1f67b945ab2164f8f489eca636ccae5f0e58fc8b
Author: flovent <flbven at protonmail.com>
Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths:
M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
Log Message:
-----------
[clang-tidy] Add detection in container's method except `empty` in `readability-container-size-empty` (#154017)
`readability-container-size-empty` skip check in container's all method,
but only `empty` method is nesscessary to skip because it's usually
implemented by `size`, so this patch allows reporting in other methods.
Note: testcase about not reporting in `empty` is already added in the
past, so i only add testcases for other methods.
Closes #152649
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list