[clang-tidy] add check for capturing lambda coroutines
authorNoah Watkins <noah@redpanda.com>
Fri, 10 Mar 2023 14:02:50 +0000 (14:02 +0000)
committerPiotr Zegar <piotr.zegar@nokia.com>
Fri, 10 Mar 2023 14:06:50 +0000 (14:06 +0000)
commit54178fc6161a5856bea608dce0d726787a3b71c3
tree0417a5e4cb5b090fd8e4a79b8495cd20bcf59e4e
parentc6b12b7c3bc81266e8becbcccf0eaf4622db0cd0
[clang-tidy] add check for capturing lambda coroutines

Signed-off-by: Noah Watkins <noah@redpanda.com>
Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D137514
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidCapturingLambdaCoroutinesCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidCapturingLambdaCoroutinesCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-capturing-lambda-coroutines.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-capturing-lambda-coroutines.cpp [new file with mode: 0644]