diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2015-10-18 20:32:12 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2015-10-18 20:32:12 +0000 |
| commit | 4b81fc87ad0d952bea640f3f39233a75cc73d8cb (patch) | |
| tree | 49948237c1b8a75fc671df70095d8de4a3cbcf2a /clang/lib | |
| parent | b25445cb48a1641f9111b61b0e4ac61a313ccbb9 (diff) | |
| download | bcm5719-llvm-4b81fc87ad0d952bea640f3f39233a75cc73d8cb.tar.gz bcm5719-llvm-4b81fc87ad0d952bea640f3f39233a75cc73d8cb.zip | |
No functionality change, just fix whitespace, a typo and remove an unnecessary
emacs mode marker. (Changes left behind from another patch that ended up not
working out.)
llvm-svn: 250666
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclBase.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 6 | ||||
| -rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index c34126ee18d..406dff68993 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -1233,7 +1233,7 @@ void DeclContext::addHiddenDecl(Decl *D) { } // Notify a C++ record declaration that we've added a member, so it can - // update it's class-specific state. + // update its class-specific state. if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(this)) Record->addedMember(D); diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 55ca678a5fa..6fbe0da8c90 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -1,4 +1,4 @@ -//===--------------------- SemaLookup.cpp - Name Lookup --------*- C++ -*-===// +//===--------------------- SemaLookup.cpp - Name Lookup ------------------===// // // The LLVM Compiler Infrastructure // @@ -154,7 +154,7 @@ namespace { // by its using directives, transitively) as if they appeared in // the given effective context. void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { - SmallVector<DeclContext*,4> queue; + SmallVector<DeclContext*, 4> queue; while (true) { for (auto UD : DC->using_directives()) { DeclContext *NS = UD->getNominatedNamespace(); @@ -2189,7 +2189,7 @@ void Sema::DiagnoseAmbiguousLookup(LookupResult &Result) { case LookupResult::AmbiguousTagHiding: { Diag(NameLoc, diag::err_ambiguous_tag_hiding) << Name << LookupRange; - llvm::SmallPtrSet<NamedDecl*,8> TagDecls; + llvm::SmallPtrSet<NamedDecl*, 8> TagDecls; for (auto *D : Result) if (TagDecl *TD = dyn_cast<TagDecl>(D)) { diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 3379f9c455f..49eacea44e6 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -260,7 +260,7 @@ void ASTDeclWriter::Visit(Decl *D) { // Source locations require array (variable-length) abbreviations. The // abbreviation infrastructure requires that arrays are encoded last, so // we handle it here in the case of those classes derived from DeclaratorDecl - if (DeclaratorDecl *DD = dyn_cast<DeclaratorDecl>(D)){ + if (DeclaratorDecl *DD = dyn_cast<DeclaratorDecl>(D)) { Writer.AddTypeSourceInfo(DD->getTypeSourceInfo(), Record); } @@ -2101,7 +2101,7 @@ void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) { if (IDR == 0) IDR = NextDeclID++; - ID= IDR; + ID = IDR; } bool isReplacingADecl = ID < FirstDeclID; |

