[all-commits] [llvm/llvm-project] 16b07c: [clang-tidy] Add check for initialization of `absl...
CJ Johnson via All-commits
all-commits at lists.llvm.org
Mon Nov 8 07:59:40 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 16b07c866ae74e0d02038574fe1c37a6cb55e233
https://github.com/llvm/llvm-project/commit/16b07c866ae74e0d02038574fe1c37a6cb55e233
Author: CJ Johnson <johnsoncj at google.com>
Date: 2021-11-08 (Mon, 08 Nov 2021)
Changed paths:
M clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
M clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
A clang-tools-extra/clang-tidy/abseil/CleanupCtadCheck.cpp
A clang-tools-extra/clang-tidy/abseil/CleanupCtadCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/abseil-cleanup-ctad.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/abseil-cleanup-ctad.cpp
Log Message:
-----------
[clang-tidy] Add check for initialization of `absl::Cleanup`.
Suggests switching the initialization pattern of `absl::Cleanup` instances from the factory function to class template argument deduction (CTAD) in C++17 and higher.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D113195
More information about the All-commits
mailing list