[all-commits] [llvm/llvm-project] 4001ae: [clang-tidy] readability-container-size-empty - de...

FĂ©lix-Antoine Constantin via All-commits all-commits at lists.llvm.org
Mon Aug 21 10:48:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4001ae175cbe351d496a6cd5481a554b346f706d
      https://github.com/llvm/llvm-project/commit/4001ae175cbe351d496a6cd5481a554b346f706d
  Author: Felix <felix-antoine.constantin at polymtl.ca>
  Date:   2023-08-21 (Mon, 21 Aug 2023)

  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] readability-container-size-empty - detect missing usage of .empty() on string_literals

Detect comparison between string and empty string_literals.

Fixes #64547

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D158346




More information about the All-commits mailing list