[all-commits] [llvm/llvm-project] 7f1d75: [clang-tidy] Fix false-positives in readability-co...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Jan 14 06:49:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f1d757fb40f06cc1c6b134d770987b340286996
      https://github.com/llvm/llvm-project/commit/7f1d757fb40f06cc1c6b134d770987b340286996
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2024-01-14 (Sun, 14 Jan 2024)

  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] Fix false-positives in readability-container-size-empty (#74140)

Added support for size-like method returning signed type, and corrected
false positive caused by always-false check for size bellow zero.

Closes #72619




More information about the All-commits mailing list