diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-29 10:16:41 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-08-29 10:16:41 +0000 |
commit | ca0fc1ec65b232fbfed974a4dee9677190814a97 (patch) | |
tree | 53c48222ba2646ddf6d2294a48d563c4310138ae | |
parent | b5f5bfd1d58daa90e48705103bccd0efe5d18f11 (diff) | |
download | clang-ca0fc1ec65b232fbfed974a4dee9677190814a97.tar.gz |
[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
-rw-r--r-- | lib/Index/IndexingAction.cpp | 8 |
1 files 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<Preprocessor> PP; std::shared_ptr<IndexingContext> IndexCtx; @@ -55,7 +55,7 @@ protected: } }; -class IndexPPCallbacks : public PPCallbacks { +class IndexPPCallbacks final : public PPCallbacks { std::shared_ptr<IndexingContext> IndexCtx; public: @@ -110,7 +110,7 @@ protected: } }; -class IndexAction : public ASTFrontendAction, IndexActionBase { +class IndexAction final : public ASTFrontendAction, IndexActionBase { public: IndexAction(std::shared_ptr<IndexDataConsumer> DataConsumer, IndexingOptions Opts) @@ -133,7 +133,7 @@ protected: } }; -class WrappingIndexAction : public WrapperFrontendAction, IndexActionBase { +class WrappingIndexAction final : public WrapperFrontendAction, IndexActionBase { bool IndexActionFailed = false; public: |