[clang] [clang] Fix a typo: ExplicitObje[C]tArgument. NFC (PR #94094)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 21:58:15 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Pavel Samolysov (samolisov)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/94094.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaTemplateDeduction.cpp (+8-7)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/94094
More information about the cfe-commits
mailing list