[PATCH] D154999: [clang-tidy] Add bugprone-std-forward-type-mismatch check

Piotr Zegar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 11 11:54:31 PDT 2023


PiotrZSL created this revision.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Detects instances where std::forward is called with a different type as an
argument compared to the type specified as the template parameter.

Extracted from D144347 <https://reviews.llvm.org/D144347>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154999

Files:
  clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
  clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
  clang-tools-extra/clang-tidy/bugprone/StdForwardTypeMismatchCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/StdForwardTypeMismatchCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/bugprone/std-forward-type-mismatch.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/test/clang-tidy/checkers/bugprone/std-forward-type-mismatch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154999.539226.patch
Type: text/x-patch
Size: 15891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230711/3dd04808/attachment-0001.bin>


More information about the cfe-commits mailing list