diff options
| author | Alp Toker <alp@nuanti.com> | 2013-12-05 16:25:25 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2013-12-05 16:25:25 +0000 |
| commit | f6a24ce40fd5e807a5e71b17d0c04866e195fb87 (patch) | |
| tree | 7cef755bd0df91b4b4b1267fb92e52a8a7953ded /clang/lib/AST | |
| parent | 4cc2b87375e4d7a9ffdd93434033b742074ed078 (diff) | |
| download | bcm5719-llvm-f6a24ce40fd5e807a5e71b17d0c04866e195fb87.tar.gz bcm5719-llvm-f6a24ce40fd5e807a5e71b17d0c04866e195fb87.zip | |
Fix a tranche of comment, test and doc typos
llvm-svn: 196510
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/DeclTemplate.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/AST/RecordLayoutBuilder.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclTemplate.cpp b/clang/lib/AST/DeclTemplate.cpp index df4a888d9d0..bab29cb1682 100644 --- a/clang/lib/AST/DeclTemplate.cpp +++ b/clang/lib/AST/DeclTemplate.cpp @@ -953,7 +953,7 @@ VarTemplateDecl *VarTemplateDecl::CreateDeserialized(ASTContext &C, return new (C, ID) VarTemplateDecl(EmptyShell()); } -// TODO: Unify accross class, function and variable templates? +// TODO: Unify across class, function and variable templates? // May require moving this and Common to RedeclarableTemplateDecl. void VarTemplateDecl::LoadLazySpecializations() const { Common *CommonPtr = getCommonPtr(); diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp index cd5ce67f1d3..f0142525b1a 100644 --- a/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/clang/lib/AST/RecordLayoutBuilder.cpp @@ -1985,7 +1985,7 @@ static bool isMsLayout(const RecordDecl* D) { // // * The alignment of bitfields in unions is ignored when computing the // alignment of the union. -// * The existance of zero-width bitfield that occurs after anything other than +// * The existence of zero-width bitfield that occurs after anything other than // a non-zero length bitfield is ignored. // * The Itanium equivalent vtable pointers are split into a vfptr (virtual // function pointer) and a vbptr (virtual base pointer). They can each be @@ -2036,7 +2036,7 @@ public: /// \brief Initializes size and alignment and honors some flags. void initializeLayout(const RecordDecl *RD); /// \brief Initialized C++ layout, compute alignment and virtual alignment and - /// existance of vfptrs and vbptrs. Alignment is needed before the vfptr is + /// existence of vfptrs and vbptrs. Alignment is needed before the vfptr is /// laid out. void initializeCXXLayout(const CXXRecordDecl *RD); void layoutVFPtr(const CXXRecordDecl *RD); @@ -2364,7 +2364,7 @@ MicrosoftRecordLayoutBuilder::layoutNonVirtualBase(const CXXRecordDecl *RD) { Bases.insert(std::make_pair(RD, BaseOffset)); Size = BaseOffset + Layout->getDataSize(); // Note: we don't update alignment here because it was accounted - // for during initalization. + // for during initialization. LastBaseWasEmpty = false; LastNonVirtualBaseHasVBPtr = Layout->hasVBPtr(); } |

