From: Nick Lewycky Date: Sun, 18 Oct 2015 20:32:12 +0000 (+0000) Subject: No functionality change, just fix whitespace, a typo and remove an unnecessary X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cbe6ab3dcb980107011c1a44cc6214b8cc1f01c;p=clang 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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250666 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index c34126ee18..406dff6899 100644 --- a/lib/AST/DeclBase.cpp +++ b/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(this)) Record->addedMember(D); diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 55ca678a5f..6fbe0da8c9 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/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 queue; + SmallVector 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 TagDecls; + llvm::SmallPtrSet TagDecls; for (auto *D : Result) if (TagDecl *TD = dyn_cast(D)) { diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 3379f9c455..49eacea44e 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/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(D)){ + if (DeclaratorDecl *DD = dyn_cast(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;