diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-04-11 02:11:45 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-04-11 02:11:45 +0000 |
| commit | f817c1cb9afe641516b21fcc6e400681025f18f9 (patch) | |
| tree | 06bc60f7ff86fcc42f6b97ac69337b5b691528ae /llvm/utils/unittest/googletest/include/gtest/gtest-spi.h | |
| parent | 34eb20725d9d923f6f2ff9f205f198d5f3df022b (diff) | |
| download | bcm5719-llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.tar.gz bcm5719-llvm-f817c1cb9afe641516b21fcc6e400681025f18f9.zip | |
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/utils/unittest/googletest/include/gtest/gtest-spi.h')
| -rw-r--r-- | llvm/utils/unittest/googletest/include/gtest/gtest-spi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/unittest/googletest/include/gtest/gtest-spi.h b/llvm/utils/unittest/googletest/include/gtest/gtest-spi.h index b226e550489..736f692e48f 100644 --- a/llvm/utils/unittest/googletest/include/gtest/gtest-spi.h +++ b/llvm/utils/unittest/googletest/include/gtest/gtest-spi.h @@ -68,14 +68,15 @@ class GTEST_API_ ScopedFakeTestPartResultReporter TestPartResultArray* result); // The d'tor restores the previous test part result reporter. - virtual ~ScopedFakeTestPartResultReporter(); + ~ScopedFakeTestPartResultReporter() override; // Appends the TestPartResult object to the TestPartResultArray // received in the constructor. // // This method is from the TestPartResultReporterInterface // interface. - virtual void ReportTestPartResult(const TestPartResult& result); + void ReportTestPartResult(const TestPartResult &result) override; + private: void Init(); |

