Skip to content

Commit e0b1959

Browse files
authored
[clang][AST][NFC] fix spelling typos in clang AST files (#141346)
1 parent ff7bb17 commit e0b1959

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
583583
llvm::DenseMap<UsingEnumDecl *, UsingEnumDecl *>
584584
InstantiatedFromUsingEnumDecl;
585585

586-
/// Simlarly maps instantiated UsingShadowDecls to their origin.
586+
/// Similarly maps instantiated UsingShadowDecls to their origin.
587587
llvm::DenseMap<UsingShadowDecl*, UsingShadowDecl*>
588588
InstantiatedFromUsingShadowDecl;
589589

@@ -791,7 +791,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
791791
}
792792
return new (*this) DeclListNode(ND);
793793
}
794-
/// Deallcates a \c DeclListNode by returning it to the \c ListNodeFreeList
794+
/// Deallocates a \c DeclListNode by returning it to the \c ListNodeFreeList
795795
/// pool.
796796
void DeallocateDeclListNode(DeclListNode *N) {
797797
N->Rest = ListNodeFreeList;
@@ -1124,7 +1124,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
11241124

11251125
/// Clean up the merged definition list. Call this if you might have
11261126
/// added duplicates into the list.
1127-
void deduplicateMergedDefinitonsFor(NamedDecl *ND);
1127+
void deduplicateMergedDefinitionsFor(NamedDecl *ND);
11281128

11291129
/// Get the additional modules in which the definition \p Def has
11301130
/// been merged.
@@ -2570,7 +2570,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
25702570
/// Return the ABI-specified natural alignment of a (complete) type \p T,
25712571
/// before alignment adjustments, in bits.
25722572
///
2573-
/// This alignment is curently used only by ARM and AArch64 when passing
2573+
/// This alignment is currently used only by ARM and AArch64 when passing
25742574
/// arguments of a composite type.
25752575
unsigned getTypeUnadjustedAlign(QualType T) const {
25762576
return getTypeUnadjustedAlign(T.getTypePtr());
@@ -2643,7 +2643,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
26432643
/// considered specifically for the query.
26442644
CharUnits getAlignOfGlobalVarInChars(QualType T, const VarDecl *VD) const;
26452645

2646-
/// Return the minimum alignement as specified by the target. If \p VD is
2646+
/// Return the minimum alignment as specified by the target. If \p VD is
26472647
/// non-null it may be used to identify external or weak variables.
26482648
unsigned getMinGlobalAlignOfVar(uint64_t Size, const VarDecl *VD) const;
26492649

clang/include/clang/AST/ASTImporterLookupTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DeclContext;
3434
// Example 2:
3535
// // The fwd decl to Foo is not found in the lookupPtr of the DC of the
3636
// // translation unit decl.
37-
// // Here we could find the node by doing a traverse throught the list of
37+
// // Here we could find the node by doing a traverse through the list of
3838
// // the Decls in the DC, but that would not scale.
3939
// struct A { struct Foo *p; };
4040
// This is a severe problem because the importer decides if it has to create a

clang/include/clang/AST/AbstractBasicReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//==--- AbstractBasiceReader.h - Abstract basic value deserialization -----===//
1+
//==--- AbstractBasicReader.h - Abstract basic value deserialization -----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

clang/lib/AST/ASTContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ void ASTContext::mergeDefinitionIntoModule(NamedDecl *ND, Module *M,
10851085
MergedDefModules[cast<NamedDecl>(ND->getCanonicalDecl())].push_back(M);
10861086
}
10871087

1088-
void ASTContext::deduplicateMergedDefinitonsFor(NamedDecl *ND) {
1088+
void ASTContext::deduplicateMergedDefinitionsFor(NamedDecl *ND) {
10891089
auto It = MergedDefModules.find(cast<NamedDecl>(ND->getCanonicalDecl()));
10901090
if (It == MergedDefModules.end())
10911091
return;
@@ -1803,7 +1803,7 @@ CharUnits ASTContext::getDeclAlign(const Decl *D, bool ForAlignof) const {
18031803
Align = Target->getCharWidth();
18041804
}
18051805

1806-
// Ensure miminum alignment for global variables.
1806+
// Ensure minimum alignment for global variables.
18071807
if (const auto *VD = dyn_cast<VarDecl>(D))
18081808
if (VD->hasGlobalStorage() && !ForAlignof) {
18091809
uint64_t TypeSize =

clang/lib/AST/ASTImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ Error ASTNodeImporter::ImportFieldDeclDefinition(const FieldDecl *From,
22202220
QualType FromType = From->getType();
22212221
QualType ToType = To->getType();
22222222
if (FromType->isArrayType()) {
2223-
// getBaseElementTypeUnsafe(...) handles multi-dimensonal arrays for us.
2223+
// getBaseElementTypeUnsafe(...) handles multi-dimensional arrays for us.
22242224
FromRecordDecl = FromType->getBaseElementTypeUnsafe()->getAsRecordDecl();
22252225
ToRecordDecl = ToType->getBaseElementTypeUnsafe()->getAsRecordDecl();
22262226
}
@@ -6142,7 +6142,7 @@ ExpectedDecl ASTNodeImporter::VisitClassTemplateDecl(ClassTemplateDecl *D) {
61426142
if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D))
61436143
continue;
61446144

6145-
// FIXME: sufficient conditon for 'IgnoreTemplateParmDepth'?
6145+
// FIXME: sufficient condition for 'IgnoreTemplateParmDepth'?
61466146
bool IgnoreTemplateParmDepth =
61476147
(FoundTemplate->getFriendObjectKind() != Decl::FOK_None) !=
61486148
(D->getFriendObjectKind() != Decl::FOK_None);

clang/lib/AST/ASTStructuralEquivalence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ CheckStructurallyEquivalentAttributes(StructuralEquivalenceContext &Context,
458458
// If either declaration has an attribute on it, we treat the declarations
459459
// as not being structurally equivalent.
460460
// FIXME: this should be handled on a case-by-case basis via tablegen in
461-
// Attr.td. There are multiple cases to consider: one declation with the
461+
// Attr.td. There are multiple cases to consider: one declaration with the
462462
// attribute, another without it; different attribute syntax|spellings for
463463
// the same semantic attribute, differences in attribute arguments, order
464464
// in which attributes are applied, how to merge attributes if the types are

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10544,7 +10544,7 @@ void ASTReader::finishPendingActions() {
1054410544

1054510545
// Do some cleanup.
1054610546
for (auto *ND : PendingMergedDefinitionsToDeduplicate)
10547-
getContext().deduplicateMergedDefinitonsFor(ND);
10547+
getContext().deduplicateMergedDefinitionsFor(ND);
1054810548
PendingMergedDefinitionsToDeduplicate.clear();
1054910549

1055010550
// For each decl chain that we wanted to complete while deserializing, mark

0 commit comments

Comments
 (0)