[all-commits] [llvm/llvm-project] 027691: [clang-tidy] Fix `cert-err33-c` to ignore function...

Björn Svensson via All-commits all-commits at lists.llvm.org
Fri Apr 11 01:08:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0276915a6c888906b2140a3d97e5ce32057a3ca5
      https://github.com/llvm/llvm-project/commit/0276915a6c888906b2140a3d97e5ce32057a3ca5
  Author: Björn Svensson <bjorn.a.svensson at est.tech>
  Date:   2025-04-11 (Fri, 11 Apr 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/cert/err33-c.c

  Log Message:
  -----------
  [clang-tidy] Fix `cert-err33-c` to ignore functions with same prefixes as target (#135160)

PR #82952 introduced regex matching for `CheckedFunctions` in
`UnusedReturnValueCheck` which is used by the checker `cert-err33-c`.

Add a testcase and fix false positives by adding end-of-string to target
regex's.

---------

Signed-off-by: Björn Svensson <bjorn.a.svensson at est.tech>



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