diff --git a/clang/lib/Index/IndexingAction.cpp b/clang/lib/Index/IndexingAction.cpp --- a/clang/lib/Index/IndexingAction.cpp +++ b/clang/lib/Index/IndexingAction.cpp @@ -23,7 +23,7 @@ namespace { -class IndexASTConsumer : public ASTConsumer { +class IndexASTConsumer final : public ASTConsumer { std::shared_ptr PP; std::shared_ptr IndexCtx; @@ -55,7 +55,7 @@ } }; -class IndexPPCallbacks : public PPCallbacks { +class IndexPPCallbacks final : public PPCallbacks { std::shared_ptr IndexCtx; public: @@ -110,7 +110,7 @@ } }; -class IndexAction : public ASTFrontendAction, IndexActionBase { +class IndexAction final : public ASTFrontendAction, IndexActionBase { public: IndexAction(std::shared_ptr DataConsumer, IndexingOptions Opts) @@ -133,7 +133,7 @@ } }; -class WrappingIndexAction : public WrapperFrontendAction, IndexActionBase { +class WrappingIndexAction final : public WrapperFrontendAction, IndexActionBase { bool IndexActionFailed = false; public: