[clang] [clang] Fix a typo: ExplicitObje[C]tArgument. NFC (PR #94094)
Pavel Samolysov via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 21:57:41 PDT 2024
https://github.com/samolisov created https://github.com/llvm/llvm-project/pull/94094
None
>From 3ad23f75eff822360f349f5101d832fb769fe11d Mon Sep 17 00:00:00 2001
From: Pavel Samolysov <samolisov at gmail.com>
Date: Sat, 1 Jun 2024 07:56:23 +0300
Subject: [PATCH] [clang] Fix a typo: ExplicitObje[C]tArgument. NFC
---
clang/lib/Sema/SemaTemplateDeduction.cpp | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/clang/lib/Sema/SemaTemplateDeduction.cpp b/clang/lib/Sema/SemaTemplateDeduction.cpp
index 440b8bc60eaab..8ec49fcf553d0 100644
--- a/clang/lib/Sema/SemaTemplateDeduction.cpp
+++ b/clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -4501,7 +4501,7 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
// Deduce an argument of type ParamType from an expression with index ArgIdx.
auto DeduceCallArgument = [&](QualType ParamType, unsigned ArgIdx,
- bool ExplicitObjetArgument) {
+ bool ExplicitObjectArgument) {
// C++ [demp.deduct.call]p1: (DR1391)
// Template argument deduction is done by comparing each function template
// parameter that contains template-parameters that participate in
@@ -4509,7 +4509,7 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
if (!hasDeducibleTemplateParameters(*this, FunctionTemplate, ParamType))
return TemplateDeductionResult::Success;
- if (ExplicitObjetArgument) {
+ if (ExplicitObjectArgument) {
// ... with the type of the corresponding argument
return DeduceTemplateArgumentsFromCallArgument(
*this, TemplateParams, FirstInnerIndex, ParamType, ObjectType,
@@ -4544,14 +4544,14 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
if (ParamIdx == 0 && HasExplicitObject) {
if (auto Result = DeduceCallArgument(ParamType, 0,
- /*ExplicitObjetArgument=*/true);
+ /*ExplicitObjectArgument=*/true);
Result != TemplateDeductionResult::Success)
return Result;
continue;
}
if (auto Result = DeduceCallArgument(ParamType, ArgIdx++,
- /*ExplicitObjetArgument=*/false);
+ /*ExplicitObjectArgument=*/false);
Result != TemplateDeductionResult::Success)
return Result;
@@ -4586,7 +4586,7 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
PackScope.nextPackElement(), ++ArgIdx) {
ParamTypesForArgChecking.push_back(ParamPattern);
if (auto Result = DeduceCallArgument(ParamPattern, ArgIdx,
- /*ExplicitObjetArgument=*/false);
+ /*ExplicitObjectArgument=*/false);
Result != TemplateDeductionResult::Success)
return Result;
}
@@ -4626,8 +4626,9 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
unsigned PackArgEnd = ArgIdx + *ArgPosAfterSubstitution;
for (; ArgIdx < PackArgEnd && ArgIdx < Args.size(); ArgIdx++) {
ParamTypesForArgChecking.push_back(ParamPattern);
- if (auto Result = DeduceCallArgument(ParamPattern, ArgIdx,
- /*ExplicitObjetArgument=*/false);
+ if (auto Result =
+ DeduceCallArgument(ParamPattern, ArgIdx,
+ /*ExplicitObjectArgument=*/false);
Result != TemplateDeductionResult::Success)
return Result;
More information about the cfe-commits
mailing list