Skip to content

Commit d10598d

Browse files
committed
[clang][AST][NFC] fix spelling typos in clang AST files
1 parent 26fe803 commit d10598d

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
@@ -582,7 +582,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
582582
llvm::DenseMap<UsingEnumDecl *, UsingEnumDecl *>
583583
InstantiatedFromUsingEnumDecl;
584584

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

@@ -790,7 +790,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
790790
}
791791
return new (*this) DeclListNode(ND);
792792
}
793-
/// Deallcates a \c DeclListNode by returning it to the \c ListNodeFreeList
793+
/// Deallocates a \c DeclListNode by returning it to the \c ListNodeFreeList
794794
/// pool.
795795
void DeallocateDeclListNode(DeclListNode *N) {
796796
N->Rest = ListNodeFreeList;
@@ -1123,7 +1123,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
11231123

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

11281128
/// Get the additional modules in which the definition \p Def has
11291129
/// been merged.
@@ -2565,7 +2565,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
25652565
/// Return the ABI-specified natural alignment of a (complete) type \p T,
25662566
/// before alignment adjustments, in bits.
25672567
///
2568-
/// This alignment is curently used only by ARM and AArch64 when passing
2568+
/// This alignment is currently used only by ARM and AArch64 when passing
25692569
/// arguments of a composite type.
25702570
unsigned getTypeUnadjustedAlign(QualType T) const {
25712571
return getTypeUnadjustedAlign(T.getTypePtr());
@@ -2638,7 +2638,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
26382638
/// considered specifically for the query.
26392639
CharUnits getAlignOfGlobalVarInChars(QualType T, const VarDecl *VD) const;
26402640

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

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
@@ -2183,7 +2183,7 @@ Error ASTNodeImporter::ImportFieldDeclDefinition(const FieldDecl *From,
21832183
QualType FromType = From->getType();
21842184
QualType ToType = To->getType();
21852185
if (FromType->isArrayType()) {
2186-
// getBaseElementTypeUnsafe(...) handles multi-dimensonal arrays for us.
2186+
// getBaseElementTypeUnsafe(...) handles multi-dimensional arrays for us.
21872187
FromRecordDecl = FromType->getBaseElementTypeUnsafe()->getAsRecordDecl();
21882188
ToRecordDecl = ToType->getBaseElementTypeUnsafe()->getAsRecordDecl();
21892189
}
@@ -6105,7 +6105,7 @@ ExpectedDecl ASTNodeImporter::VisitClassTemplateDecl(ClassTemplateDecl *D) {
61056105
if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D))
61066106
continue;
61076107

6108-
// FIXME: sufficient conditon for 'IgnoreTemplateParmDepth'?
6108+
// FIXME: sufficient condition for 'IgnoreTemplateParmDepth'?
61096109
bool IgnoreTemplateParmDepth =
61106110
(FoundTemplate->getFriendObjectKind() != Decl::FOK_None) !=
61116111
(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
@@ -10531,7 +10531,7 @@ void ASTReader::finishPendingActions() {
1053110531

1053210532
// Do some cleanup.
1053310533
for (auto *ND : PendingMergedDefinitionsToDeduplicate)
10534-
getContext().deduplicateMergedDefinitonsFor(ND);
10534+
getContext().deduplicateMergedDefinitionsFor(ND);
1053510535
PendingMergedDefinitionsToDeduplicate.clear();
1053610536

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

0 commit comments

Comments
 (0)