gribozavr created this revision. Herald added subscribers: cfe-commits, arphaman. Herald added a project: clang. gribozavr added a reviewer: ilya-biryukov. gribozavr added a child revision: D66876: Indexing: create PP callbacks in the ASTConsumer.
This file defines multiple inheritance hierarchies and 'final' helps with readability. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D66875 Files: clang/lib/Index/IndexingAction.cpp Index: clang/lib/Index/IndexingAction.cpp =================================================================== --- clang/lib/Index/IndexingAction.cpp +++ clang/lib/Index/IndexingAction.cpp @@ -23,7 +23,7 @@ namespace { -class IndexASTConsumer : public ASTConsumer { +class IndexASTConsumer final : public ASTConsumer { std::shared_ptr<Preprocessor> PP; std::shared_ptr<IndexingContext> IndexCtx; @@ -55,7 +55,7 @@ } }; -class IndexPPCallbacks : public PPCallbacks { +class IndexPPCallbacks final : public PPCallbacks { std::shared_ptr<IndexingContext> IndexCtx; public: @@ -110,7 +110,7 @@ } }; -class IndexAction : public ASTFrontendAction, IndexActionBase { +class IndexAction final : public ASTFrontendAction, IndexActionBase { public: IndexAction(std::shared_ptr<IndexDataConsumer> DataConsumer, IndexingOptions Opts) @@ -133,7 +133,7 @@ } }; -class WrappingIndexAction : public WrapperFrontendAction, IndexActionBase { +class WrappingIndexAction final : public WrapperFrontendAction, IndexActionBase { bool IndexActionFailed = false; public:
Index: clang/lib/Index/IndexingAction.cpp =================================================================== --- clang/lib/Index/IndexingAction.cpp +++ clang/lib/Index/IndexingAction.cpp @@ -23,7 +23,7 @@ namespace { -class IndexASTConsumer : public ASTConsumer { +class IndexASTConsumer final : public ASTConsumer { std::shared_ptr<Preprocessor> PP; std::shared_ptr<IndexingContext> IndexCtx; @@ -55,7 +55,7 @@ } }; -class IndexPPCallbacks : public PPCallbacks { +class IndexPPCallbacks final : public PPCallbacks { std::shared_ptr<IndexingContext> IndexCtx; public: @@ -110,7 +110,7 @@ } }; -class IndexAction : public ASTFrontendAction, IndexActionBase { +class IndexAction final : public ASTFrontendAction, IndexActionBase { public: IndexAction(std::shared_ptr<IndexDataConsumer> DataConsumer, IndexingOptions Opts) @@ -133,7 +133,7 @@ } }; -class WrappingIndexAction : public WrapperFrontendAction, IndexActionBase { +class WrappingIndexAction final : public WrapperFrontendAction, IndexActionBase { bool IndexActionFailed = false; public:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits