From ca0fc1ec65b232fbfed974a4dee9677190814a97 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Thu, 29 Aug 2019 10:16:41 +0000 Subject: [PATCH] [Index] Marked a bunch of classes 'final' This file defines multiple inheritance hierarchies and 'final' helps with readability. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370321 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Index/IndexingAction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Index/IndexingAction.cpp b/lib/Index/IndexingAction.cpp index 41f1008a47..4457e77a7a 100644 --- a/lib/Index/IndexingAction.cpp +++ b/lib/Index/IndexingAction.cpp @@ -23,7 +23,7 @@ using namespace clang::index; namespace { -class IndexASTConsumer : public ASTConsumer { +class IndexASTConsumer final : public ASTConsumer { std::shared_ptr PP; std::shared_ptr IndexCtx; @@ -55,7 +55,7 @@ protected: } }; -class IndexPPCallbacks : public PPCallbacks { +class IndexPPCallbacks final : public PPCallbacks { std::shared_ptr IndexCtx; public: @@ -110,7 +110,7 @@ protected: } }; -class IndexAction : public ASTFrontendAction, IndexActionBase { +class IndexAction final : public ASTFrontendAction, IndexActionBase { public: IndexAction(std::shared_ptr DataConsumer, IndexingOptions Opts) @@ -133,7 +133,7 @@ protected: } }; -class WrappingIndexAction : public WrapperFrontendAction, IndexActionBase { +class WrappingIndexAction final : public WrapperFrontendAction, IndexActionBase { bool IndexActionFailed = false; public: -- 2.40.0