[all-commits] [llvm/llvm-project] e08cc5: [clang-tidy] Fix false-positive in readability-con...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Sat Feb 25 10:20:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e08cc52cfc23d9fcf2e87301e74bfa94d7a4bad0
https://github.com/llvm/llvm-project/commit/e08cc52cfc23d9fcf2e87301e74bfa94d7a4bad0
Author: Piotr Zegar <piotr.zegar at nokia.com>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability/container-size-empty.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
Log Message:
-----------
[clang-tidy] Fix false-positive in readability-container-size-empty
Ignoring std::array type when matching 'std:array == std::array()'.
In such case we shouldn't propose to use empty().
Fixes: https://github.com/llvm/llvm-project/issues/48286
Differential Revision: https://reviews.llvm.org/D144217
More information about the All-commits
mailing list