diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-06-22 09:47:44 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-06-22 09:47:44 +0000 |
commit | ac58acc7f25239a1d9ef45a97aa4a395ef714748 (patch) | |
tree | fa39561f2a6b22c1e6f3368535fbd2e08df2fbdd /lib/Serialization | |
parent | 6177d6a1c142dff1f7febfc9186909e0408e3ed5 (diff) |
Fixed/added namespace ending comments using clang-tidy. NFC
The patch is generated using this command:
$ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \
-checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \
work/llvm/tools/clang
To reduce churn, not touching namespaces spanning less than 10 lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240270 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization')
-rw-r--r-- | lib/Serialization/ASTReader.cpp | 21 | ||||
-rw-r--r-- | lib/Serialization/ASTReaderDecl.cpp | 10 | ||||
-rw-r--r-- | lib/Serialization/ASTReaderInternals.h | 4 | ||||
-rw-r--r-- | lib/Serialization/ASTReaderStmt.cpp | 4 | ||||
-rw-r--r-- | lib/Serialization/ASTWriter.cpp | 4 | ||||
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 2 | ||||
-rw-r--r-- | lib/Serialization/ASTWriterStmt.cpp | 4 | ||||
-rw-r--r-- | lib/Serialization/GlobalModuleIndex.cpp | 12 | ||||
-rw-r--r-- | lib/Serialization/ModuleManager.cpp | 2 |
9 files changed, 32 insertions, 31 deletions
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index 7242793be2..5ecedc7df0 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -1686,7 +1686,7 @@ namespace { // files. IdentifierInfo *getIdentifierInfo() const { return Found; } }; -} +} // namespace void ASTReader::updateOutOfDateIdentifier(IdentifierInfo &II) { // Note that we are loading an identifier. @@ -3954,7 +3954,7 @@ namespace { SuggestedPredefines, ExistingLangOpts); } }; -} +} // namespace bool ASTReader::readASTFileControlBlock( StringRef Filename, FileManager &FileMgr, @@ -4739,7 +4739,7 @@ struct PPEntityComp { } }; -} +} // namespace PreprocessedEntityID ASTReader::findPreprocessedEntity(SourceLocation Loc, bool EndsAfter) const { @@ -4859,7 +4859,7 @@ namespace { Optional<HeaderFileInfo> getHeaderFileInfo() const { return HFI; } }; -} +} // namespace HeaderFileInfo ASTReader::GetHeaderFileInfo(const FileEntry *FE) { HeaderFileInfoVisitor Visitor(FE); @@ -6192,7 +6192,7 @@ namespace { return false; } }; -} +} // namespace ExternalLoadResult ASTReader::FindExternalLexicalDecls(const DeclContext *DC, bool (*isKindWeWant)(Decl::Kind), @@ -6237,7 +6237,7 @@ public: } }; -} +} // namespace void ASTReader::FindFileRegionDecls(FileID File, unsigned Offset, unsigned Length, @@ -6355,7 +6355,7 @@ namespace { return FoundAnything; } }; -} +} // namespace /// \brief Retrieve the "definitive" module file for the definition of the /// given declaration context, if there is one. @@ -6504,7 +6504,7 @@ namespace { return FoundAnything && !This->VisitAll; } }; -} +} // namespace void ASTReader::completeVisibleDeclsMap(const DeclContext *DC) { if (!DC->hasExternalVisibleStorage()) @@ -6848,7 +6848,7 @@ namespace clang { StringRef Next() override; }; -} +} // namespace clang ASTIdentifierIterator::ASTIdentifierIterator(const ASTReader &Reader) : Reader(Reader), Index(Reader.ModuleMgr.size() - 1) { @@ -6960,7 +6960,8 @@ namespace clang { namespace serialization { } bool factoryHasMoreThanOneDecl() const { return FactoryHasMoreThanOneDecl; } }; -} } // end namespace clang::serialization +} // namespace serialization + } // namespace clang /// \brief Add the given set of methods to the method list. static void addMethodsToPool(Sema &S, ArrayRef<ObjCMethodDecl *> Methods, diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 00ebd3ebe8..136ef1a425 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -387,7 +387,7 @@ namespace clang { } } }; -} +} // namespace clang namespace { /// Iterator over the redeclarations of a declaration that have already @@ -423,7 +423,7 @@ public: return A.Current != B.Current; } }; -} +} // namespace template<typename DeclT> llvm::iterator_range<MergedRedeclIterator<DeclT>> merged_redecls(DeclT *D) { return llvm::iterator_range<MergedRedeclIterator<DeclT>>( @@ -2934,7 +2934,7 @@ void ASTDeclReader::attachPreviousDeclImpl(ASTReader &Reader, std::make_pair(Canon, IsUnresolved ? PrevFD : FD)); } } -} +} // namespace clang void ASTDeclReader::attachPreviousDeclImpl(ASTReader &Reader, ...) { llvm_unreachable("attachPreviousDecl on non-redeclarable declaration"); } @@ -3490,7 +3490,7 @@ namespace { return Chain; } }; -} +} // namespace void ASTReader::loadPendingDeclChain(Decl *CanonDecl) { // The decl might have been merged into something else after being added to @@ -3647,7 +3647,7 @@ namespace { return true; } }; -} +} // namespace void ASTReader::loadObjCCategories(serialization::GlobalDeclID ID, ObjCInterfaceDecl *D, diff --git a/lib/Serialization/ASTReaderInternals.h b/lib/Serialization/ASTReaderInternals.h index d1b032b27a..9a1532780a 100644 --- a/lib/Serialization/ASTReaderInternals.h +++ b/lib/Serialization/ASTReaderInternals.h @@ -241,8 +241,8 @@ public: typedef llvm::OnDiskChainedHashTable<HeaderFileInfoTrait> HeaderFileInfoLookupTable; -} // end namespace clang::serialization::reader -} // end namespace clang::serialization +} // namespace reader +} // namespace serialization } // end namespace clang diff --git a/lib/Serialization/ASTReaderStmt.cpp b/lib/Serialization/ASTReaderStmt.cpp index c15f6b0b55..ae22101b99 100644 --- a/lib/Serialization/ASTReaderStmt.cpp +++ b/lib/Serialization/ASTReaderStmt.cpp @@ -103,7 +103,7 @@ namespace clang { void Visit##Type(Type *); #include "clang/AST/StmtNodes.inc" }; -} +} // namespace clang void ASTStmtReader:: ReadTemplateKWAndArgsInfo(ASTTemplateKWAndArgsInfo &Args, @@ -1699,7 +1699,7 @@ public: #include "clang/Basic/OpenMPKinds.def" OMPClause *readClause(); }; -} +} // namespace clang OMPClause *OMPClauseReader::readClause() { OMPClause *C; diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 5bb0bec4f5..45ab99cc11 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -98,7 +98,7 @@ namespace { #define ABSTRACT_TYPE(Class, Base) #include "clang/AST/TypeNodes.def" }; -} +} // namespace void ASTTypeWriter::VisitBuiltinType(const BuiltinType *T) { llvm_unreachable("Built-in types are never serialized"); @@ -458,7 +458,7 @@ public: void VisitFunctionTypeLoc(FunctionTypeLoc TyLoc); }; -} +} // namespace void TypeLocWriter::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) { // nothing to do diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 6c5bc5bbd4..0f813302f8 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp @@ -193,7 +193,7 @@ namespace clang { Record.append(LazySpecializations.begin(), LazySpecializations.end()); } }; -} +} // namespace clang void ASTDeclWriter::Visit(Decl *D) { DeclVisitor<ASTDeclWriter>::Visit(D); diff --git a/lib/Serialization/ASTWriterStmt.cpp b/lib/Serialization/ASTWriterStmt.cpp index a461d3f663..f58ce5fae4 100644 --- a/lib/Serialization/ASTWriterStmt.cpp +++ b/lib/Serialization/ASTWriterStmt.cpp @@ -47,7 +47,7 @@ namespace clang { void Visit##Type(Type *); #include "clang/AST/StmtNodes.inc" }; -} +} // namespace clang void ASTStmtWriter:: AddTemplateKWAndArgsInfo(const ASTTemplateKWAndArgsInfo &Args) { @@ -1708,7 +1708,7 @@ public: #include "clang/Basic/OpenMPKinds.def" void writeClause(OMPClause *C); }; -} +} // namespace clang void OMPClauseWriter::writeClause(OMPClause *C) { Record.push_back(C->getClauseKind()); diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp index 2c7da3e82a..1a6fc78c5b 100644 --- a/lib/Serialization/GlobalModuleIndex.cpp +++ b/lib/Serialization/GlobalModuleIndex.cpp @@ -52,7 +52,7 @@ namespace { /// \brief The index for identifiers. IDENTIFIER_INDEX }; -} +} // namespace /// \brief The name of the global index file. static const char * const IndexFileName = "modules.idx"; @@ -121,7 +121,7 @@ public: typedef llvm::OnDiskIterableChainedHashTable<IdentifierIndexReaderTrait> IdentifierIndexTable; -} +} // namespace GlobalModuleIndex::GlobalModuleIndex(std::unique_ptr<llvm::MemoryBuffer> Buffer, llvm::BitstreamCursor Cursor) @@ -430,7 +430,7 @@ namespace { /// \brief Write the index to the given bitstream. void writeIndex(llvm::BitstreamWriter &Stream); }; -} +} // namespace static void emitBlockID(unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, @@ -493,7 +493,7 @@ namespace { return std::make_pair(k, IsInteresting); } }; -} +} // namespace bool GlobalModuleIndexBuilder::loadModuleFile(const FileEntry *File) { // Open the module file. @@ -684,7 +684,7 @@ public: } }; -} +} // namespace void GlobalModuleIndexBuilder::writeIndex(llvm::BitstreamWriter &Stream) { using namespace llvm; @@ -882,7 +882,7 @@ namespace { return Result; } }; -} +} // namespace IdentifierIterator *GlobalModuleIndex::createIdentifierIterator() const { IdentifierIndexTable &Table = diff --git a/lib/Serialization/ModuleManager.cpp b/lib/Serialization/ModuleManager.cpp index 03d8ed0e24..f5dff2c165 100644 --- a/lib/Serialization/ModuleManager.cpp +++ b/lib/Serialization/ModuleManager.cpp @@ -534,7 +534,7 @@ namespace llvm { return M->ModuleName; } }; -} +} // namespace llvm void ModuleManager::viewGraph() { llvm::ViewGraph(*this, "Modules"); |