diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-04-11 07:59:33 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-04-11 07:59:33 +0000 |
commit | 1daf9da86e09665cddcd0a4139369618d62355fe (patch) | |
tree | d425c5dd35d576d9ffdb5aba51a16744a93e0dfa /clang-query/Query.cpp | |
parent | 11f43a2e50bdb9c75cccb0d5b3072b5a6b397a7f (diff) |
Use 'override/final' instead of 'virtual' for overridden methods
Summary:
The patch is generated using clang-tidy misc-use-override check.
This command was used:
tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
-checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix
svn diff | clang-format-diff -i
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D8927
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@234681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query/Query.cpp')
-rw-r--r-- | clang-query/Query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp index 3b496245..d5d75515 100644 --- a/clang-query/Query.cpp +++ b/clang-query/Query.cpp @@ -53,7 +53,7 @@ namespace { struct CollectBoundNodes : MatchFinder::MatchCallback { std::vector<BoundNodes> &Bindings; CollectBoundNodes(std::vector<BoundNodes> &Bindings) : Bindings(Bindings) {} - void run(const MatchFinder::MatchResult &Result) { + void run(const MatchFinder::MatchResult &Result) override { Bindings.push_back(Result.Nodes); } }; |