Skip to content

Commit 33de6aa

Browse files
authored
[Clang][NFC] Fix a typo in FunctionDecl (#167677)
Found it while looking at other stuffs.
1 parent 46e9d63 commit 33de6aa

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ class FunctionDecl : public DeclaratorDecl,
23352335
}
23362336

23372337
void setDefaultedOrDeletedInfo(DefaultedOrDeletedFunctionInfo *Info);
2338-
DefaultedOrDeletedFunctionInfo *getDefalutedOrDeletedInfo() const;
2338+
DefaultedOrDeletedFunctionInfo *getDefaultedOrDeletedInfo() const;
23392339

23402340
/// Whether this function is variadic.
23412341
bool isVariadic() const;

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ void FunctionDecl::DefaultedOrDeletedFunctionInfo::setDeletedMessage(
31803180
}
31813181

31823182
FunctionDecl::DefaultedOrDeletedFunctionInfo *
3183-
FunctionDecl::getDefalutedOrDeletedInfo() const {
3183+
FunctionDecl::getDefaultedOrDeletedInfo() const {
31843184
return FunctionDeclBits.HasDefaultedOrDeletedInfo ? DefaultedOrDeletedInfo
31853185
: nullptr;
31863186
}

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8035,7 +8035,7 @@ class DefaultedComparisonVisitor {
80358035
DefaultedComparisonVisitor(Sema &S, CXXRecordDecl *RD, FunctionDecl *FD,
80368036
DefaultedComparisonKind DCK)
80378037
: S(S), RD(RD), FD(FD), DCK(DCK) {
8038-
if (auto *Info = FD->getDefalutedOrDeletedInfo()) {
8038+
if (auto *Info = FD->getDefaultedOrDeletedInfo()) {
80398039
// FIXME: Change CreateOverloadedBinOp to take an ArrayRef instead of an
80408040
// UnresolvedSet to avoid this copy.
80418041
Fns.assign(Info->getUnqualifiedLookups().begin(),

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5465,7 +5465,7 @@ TemplateDeclInstantiator::InitMethodInstantiation(CXXMethodDecl *New,
54655465
bool TemplateDeclInstantiator::SubstDefaultedFunction(FunctionDecl *New,
54665466
FunctionDecl *Tmpl) {
54675467
// Transfer across any unqualified lookups.
5468-
if (auto *DFI = Tmpl->getDefalutedOrDeletedInfo()) {
5468+
if (auto *DFI = Tmpl->getDefaultedOrDeletedInfo()) {
54695469
SmallVector<DeclAccessPair, 32> Lookups;
54705470
Lookups.reserve(DFI->getUnqualifiedLookups().size());
54715471
bool AnyChanged = false;

clang/lib/Serialization/ASTWriterDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
903903
Record.push_back(D->getODRHash());
904904

905905
if (D->isDefaulted() || D->isDeletedAsWritten()) {
906-
if (auto *FDI = D->getDefalutedOrDeletedInfo()) {
906+
if (auto *FDI = D->getDefaultedOrDeletedInfo()) {
907907
// Store both that there is an DefaultedOrDeletedInfo and whether it
908908
// contains a DeletedMessage.
909909
StringLiteral *DeletedMessage = FDI->getDeletedMessage();

0 commit comments

Comments
 (0)