aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-04-11 02:11:45 +0000
committerAlexander Kornienko <alexfh@google.com>2015-04-11 02:11:45 +0000
commitf817c1cb9afe641516b21fcc6e400681025f18f9 (patch)
tree06bc60f7ff86fcc42f6b97ac69337b5b691528ae /llvm/unittests/Support/CommandLineTest.cpp
parent34eb20725d9d923f6f2ff9f205f198d5f3df022b (diff)
downloadllvm-f817c1cb9afe641516b21fcc6e400681025f18f9.zip
llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.tar.gz
llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.tar.bz2
Use 'override/final' instead of 'virtual' for overridden methods
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 -format http://reviews.llvm.org/D8925 llvm-svn: 234679
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 9d7679d..328c4b7 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -65,9 +65,7 @@ public:
StackOption(const M0t &M0, const M1t &M1, const M2t &M2, const M3t &M3)
: Base(M0, M1, M2, M3) {}
- ~StackOption() {
- this->removeArgument();
- }
+ ~StackOption() override { this->removeArgument(); }
};