[all-commits] [llvm/llvm-project] b06b24: [clang-tidy] Implement CppCoreGuideline CP.53
Chris Cotter via All-commits
all-commits at lists.llvm.org
Thu Jan 5 05:57:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b06b248ad9dc1b50dcf474616c3d586d47270a01
https://github.com/llvm/llvm-project/commit/b06b248ad9dc1b50dcf474616c3d586d47270a01
Author: Chris Cotter <ccotter14 at bloomberg.net>
Date: 2023-01-05 (Thu, 05 Jan 2023)
Changed paths:
A clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidReferenceCoroutineParametersCheck.cpp
A clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidReferenceCoroutineParametersCheck.h
M clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
M clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-reference-coroutine-parameters.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-reference-coroutine-parameters.cpp
Log Message:
-----------
[clang-tidy] Implement CppCoreGuideline CP.53
Implement CppCoreGuideline CP.53 to warn when a coroutine accepts
references parameters. Although the guideline mentions that it is safe
to access a reference parameter before suspension points, the guideline
recommends flagging all coroutine parameter references.
Reviewed By: carlosgalvezp
Differential Revision: https://reviews.llvm.org/D140793
More information about the All-commits
mailing list