[clang-tidy] added cppcoreguidelines-explicit-virtual-functions
authorJonas Toth <jonas.toth@gmail.com>
Thu, 28 Feb 2019 14:55:12 +0000 (14:55 +0000)
committerJonas Toth <jonas.toth@gmail.com>
Thu, 28 Feb 2019 14:55:12 +0000 (14:55 +0000)
commitda666233fe7d1748b38ae0cea0b7be357e8b6a05
tree634650f19451872df59060457afc2102d8809818
parent2098b86b9658c0751ef00af779ab34cc7a56f01d
[clang-tidy] added cppcoreguidelines-explicit-virtual-functions

Addresses the bugzilla bug #30397. (https://bugs.llvm.org/show_bug.cgi?id=30397)
modernize-use-override suggests that destructors require the override specifier
and the CPP core guidelines do not recommend this.

Patch by lewmpk.

Differential Revision: https://reviews.llvm.org/D58731

llvm-svn: 355093
clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.cpp
clang-tools-extra/clang-tidy/modernize/UseOverrideCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst
clang-tools-extra/test/clang-tidy/modernize-use-override-no-destructors.cpp [new file with mode: 0644]