diff options
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/ASTConsumers.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 6 | ||||
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/DependencyFile.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/DependencyGraph.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/DiagnosticRenderer.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/HeaderIncludeGen.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/ModuleDependencyCollector.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/Rewrite/FixItRewriter.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/Rewrite/HTMLPrint.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/Rewrite/RewriteObjC.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/SerializedDiagnosticReader.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Frontend/VerifyDiagnosticConsumer.cpp | 2 |
16 files changed, 18 insertions, 18 deletions
diff --git a/clang/lib/Frontend/ASTConsumers.cpp b/clang/lib/Frontend/ASTConsumers.cpp index 52776b6a848..28771e2bc7b 100644 --- a/clang/lib/Frontend/ASTConsumers.cpp +++ b/clang/lib/Frontend/ASTConsumers.cpp @@ -158,7 +158,7 @@ namespace { void HandleTopLevelSingleDecl(Decl *D); }; -} +} // namespace void ASTViewer::HandleTopLevelSingleDecl(Decl *D) { if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) { diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 01c56bdc4df..3cf202d283d 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -96,7 +96,7 @@ namespace { /// \brief Erase temporary files and the preamble file. void Cleanup(); }; -} +} // namespace static llvm::sys::SmartMutex<false> &getOnDiskMutex() { static llvm::sys::SmartMutex<false> M(/* recursive = */ true); @@ -972,7 +972,7 @@ public: } }; -} +} // namespace std::unique_ptr<ASTConsumer> PrecompilePreambleAction::CreateASTConsumer(CompilerInstance &CI, @@ -2123,7 +2123,7 @@ namespace { return Next.getCodeCompletionTUInfo(); } }; -} +} // namespace /// \brief Helper function that computes which global names are hidden by the /// local code-completion results. diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index be30d43a843..1b20df64ab9 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -71,7 +71,7 @@ protected: void ReadMethodPool(Selector Sel) override; bool LookupUnqualified(LookupResult &R, Scope *S) override; }; -} +} // namespace static ASTReader * createASTReader(CompilerInstance &CI, StringRef pchFile, diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 34c1a367a3b..7a3391685a4 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1908,7 +1908,7 @@ namespace { llvm::APInt getAsInteger() const; }; -} +} // namespace void ModuleSignature::add(uint64_t Value, unsigned int NumBits) { CurValue |= Value << CurBit; diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index 0995ab4bf07..30fdf946a6a 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -198,7 +198,7 @@ public: bool visitInputFile(StringRef Filename, bool isSystem, bool isOverridden) override; }; -} +} // namespace DependencyFileGenerator::DependencyFileGenerator(void *Impl) : Impl(Impl) { } diff --git a/clang/lib/Frontend/DependencyGraph.cpp b/clang/lib/Frontend/DependencyGraph.cpp index 67a977e38be..f384f490e6f 100644 --- a/clang/lib/Frontend/DependencyGraph.cpp +++ b/clang/lib/Frontend/DependencyGraph.cpp @@ -57,7 +57,7 @@ public: } }; -} +} // namespace void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, StringRef SysRoot) { diff --git a/clang/lib/Frontend/DiagnosticRenderer.cpp b/clang/lib/Frontend/DiagnosticRenderer.cpp index c63e98dbe4f..52908371d3e 100644 --- a/clang/lib/Frontend/DiagnosticRenderer.cpp +++ b/clang/lib/Frontend/DiagnosticRenderer.cpp @@ -87,7 +87,7 @@ public: } }; -} +} // namespace static void mergeFixits(ArrayRef<FixItHint> FixItHints, const SourceManager &SM, const LangOptions &LangOpts, diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 6f202a15483..bcfd77e3a86 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -554,7 +554,7 @@ namespace { } #undef DUMP_BOOLEAN }; -} +} // namespace void DumpModuleInfoAction::ExecuteAction() { // Set up the output file. diff --git a/clang/lib/Frontend/HeaderIncludeGen.cpp b/clang/lib/Frontend/HeaderIncludeGen.cpp index 5732e5b3fb7..f0a2cc63000 100644 --- a/clang/lib/Frontend/HeaderIncludeGen.cpp +++ b/clang/lib/Frontend/HeaderIncludeGen.cpp @@ -44,7 +44,7 @@ public: SrcMgr::CharacteristicKind FileType, FileID PrevFID) override; }; -} +} // namespace void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, StringRef OutputPath, bool ShowDepth, diff --git a/clang/lib/Frontend/ModuleDependencyCollector.cpp b/clang/lib/Frontend/ModuleDependencyCollector.cpp index 67852dc0203..539f9b008f5 100644 --- a/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ b/clang/lib/Frontend/ModuleDependencyCollector.cpp @@ -35,7 +35,7 @@ public: bool visitInputFile(StringRef Filename, bool IsSystem, bool IsOverridden) override; }; -} +} // namespace void ModuleDependencyCollector::attachToASTReader(ASTReader &R) { R.addListener(llvm::make_unique<ModuleDependencyListener>(*this)); diff --git a/clang/lib/Frontend/Rewrite/FixItRewriter.cpp b/clang/lib/Frontend/Rewrite/FixItRewriter.cpp index dc787ac9557..3b8a2077c67 100644 --- a/clang/lib/Frontend/Rewrite/FixItRewriter.cpp +++ b/clang/lib/Frontend/Rewrite/FixItRewriter.cpp @@ -69,7 +69,7 @@ public: } }; -} +} // namespace bool FixItRewriter::WriteFixedFiles( std::vector<std::pair<std::string, std::string> > *RewrittenFiles) { diff --git a/clang/lib/Frontend/Rewrite/HTMLPrint.cpp b/clang/lib/Frontend/Rewrite/HTMLPrint.cpp index 22ccfe6936b..b2706110d9f 100644 --- a/clang/lib/Frontend/Rewrite/HTMLPrint.cpp +++ b/clang/lib/Frontend/Rewrite/HTMLPrint.cpp @@ -45,7 +45,7 @@ namespace { void Initialize(ASTContext &context) override; void HandleTranslationUnit(ASTContext &Ctx) override; }; -} +} // namespace std::unique_ptr<ASTConsumer> clang::CreateHTMLPrinter(raw_ostream *OS, Preprocessor &PP, diff --git a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp index e13cdb3a3e5..cfd790c53f7 100644 --- a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp +++ b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp @@ -609,7 +609,7 @@ namespace { } }; -} +} // namespace void RewriteModernObjC::RewriteBlocksInFunctionProtoType(QualType funcType, NamedDecl *D) { diff --git a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp index b2a45b407ba..56f06061960 100644 --- a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp +++ b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp @@ -540,7 +540,7 @@ namespace { std::string &Result) override; Stmt *RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV) override; }; -} +} // namespace void RewriteObjC::RewriteBlocksInFunctionProtoType(QualType funcType, NamedDecl *D) { diff --git a/clang/lib/Frontend/SerializedDiagnosticReader.cpp b/clang/lib/Frontend/SerializedDiagnosticReader.cpp index 0ebbd22af27..75fce89a2a7 100644 --- a/clang/lib/Frontend/SerializedDiagnosticReader.cpp +++ b/clang/lib/Frontend/SerializedDiagnosticReader.cpp @@ -287,7 +287,7 @@ class SDErrorCategoryType final : public std::error_category { llvm_unreachable("Unknown error type!"); } }; -} +} // namespace static llvm::ManagedStatic<SDErrorCategoryType> ErrorCategory; const std::error_category &clang::serialized_diags::SDErrorCategory() { diff --git a/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp b/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp index 55df9361b58..b673efcbabf 100644 --- a/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp +++ b/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp @@ -301,7 +301,7 @@ private: const char *PEnd; // previous next/search subject end (1-past) }; -} // namespace anonymous +} // namespace /// ParseDirective - Go through the comment and see if it indicates expected /// diagnostics. If so, then put them in the appropriate directive list. |