[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Fix false positive for constrained template parameters (PR #182038)
Aditya Singh via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 4 02:56:16 PST 2026
================
@@ -46,6 +46,14 @@ AST_MATCHER(ParmVarDecl, isTemplateTypeParameter) {
const QualType ParamType =
Node.getType().getNonPackExpansionType()->getPointeeType();
+
+ // Explicit object parameters with a type constraint are not forwarding
----------------
Aditya26189 wrote:
Updated the comment. Also added a Limitation in the Documentation and updated the PR description
https://github.com/llvm/llvm-project/pull/182038
More information about the cfe-commits
mailing list