[all-commits] [llvm/llvm-project] ae464f: [clang-tidy] Fix cert-err33-c inheriting CheckedRe...
Endre Fülöp via All-commits
all-commits at lists.llvm.org
Mon Jun 1 12:12:25 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ae464f629520427be2ff63768d8a9fa4f0345223
https://github.com/llvm/llvm-project/commit/ae464f629520427be2ff63768d8a9fa4f0345223
Author: Endre Fülöp <endre.fulop at sigmatechnology.com>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
M clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/test/clang-tidy/checkers/cert/err33-c.cpp
Log Message:
-----------
[clang-tidy] Fix cert-err33-c inheriting CheckedReturnTypes from bugp… (#200169)
…rone-unused-return-value
The cert-err33-c alias did not override CheckedReturnTypes, causing it
to inherit the default from bugprone-unused-return-value. This made it
flag any function returning std::error_code, std::expected, etc. That is
outside the scope of CERT ERR33-C (a fixed list of C standard library
functions).
Set CheckedReturnTypes to empty so the alias only checks its intended
function list.
---------
Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
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