[PATCH] D141133: [clang-tidy] Implement CppCoreGuideline F.54
Chris Cotter via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 6 06:49:51 PST 2023
ccotter created this revision.
Herald added subscribers: carlosgalvezp, shchenz, kbarton, xazax.hun, nemanjai.
Herald added a reviewer: njames93.
Herald added a project: All.
ccotter requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Warn when a lambda specifies a default capture and captures
``this``. Offer FixIts to correct the code.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141133
Files:
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidCaptureThisWithCaptureDefaultCheck.cpp
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidCaptureThisWithCaptureDefaultCheck.h
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-capture-this-with-capture-default.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-capture-this-with-capture-default.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141133.486858.patch
Type: text/x-patch
Size: 17282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230106/43bd9489/attachment-0001.bin>
More information about the cfe-commits
mailing list