llvm-project/clang-tools-extra/unittests/clang-tidy
Nathan James 39c4246e1e [clang-tidy] Added virtual isLanguageVersionSupported to ClangTidyCheck
Summary:
Motivated by [[ https://bugs.llvm.org/show_bug.cgi?id=45045 | Tune inspections to a specific C++ standard. ]]
Moves the isLanguageVersionSupported virtual function from `MakeSmartPtrCheck` to the base `ClangTidyCheck` class.
This will disable registering matchers or pp callbacks on unsupported language versions for a check.
Having it as a standalone function is cleaner than manually disabling the check in the register function and should hopefully
encourage check developers to actually restrict the check based on language version.
As an added bonus this could enable automatic detection of what language version a check runs on for the purpose of documentation generation

Reviewers: aaron.ballman, gribozavr2, Eugene.Zelenko, JonasToth, alexfh, hokein

Reviewed By: gribozavr2

Subscribers: xazax.hun, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75289
2020-02-28 13:05:05 +00:00
..
AddConstTest.cpp [clang-tidy] implement utility-function to add 'const' to variables 2020-01-03 20:37:47 +01:00
CMakeLists.txt [clang-tidy] fix linkage with clangSema for FixitHintUtils, undo previous wrong fix 2020-01-03 22:32:10 +01:00
ClangTidyDiagnosticConsumerTest.cpp Moved GlobList into a separate header file 2019-08-26 15:44:32 +00:00
ClangTidyOptionsTest.cpp Partially revert r331456: [clang-tidy] Remove AnalyzeTemporaryDtors option. 2018-05-08 23:15:58 +00:00
ClangTidyTest.h [clang-tidy] Added virtual isLanguageVersionSupported to ClangTidyCheck 2020-02-28 13:05:05 +00:00
GlobListTest.cpp GlobList: added a clear test for pattern priority 2019-08-27 08:42:42 +00:00
GoogleModuleTest.cpp
IncludeInserterTest.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
LLVMModuleTest.cpp [clang-tidy] Make llvm-header-guard work on llvm git monorepo 2019-09-26 09:56:37 +00:00
NamespaceAliaserTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjCModuleTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OverlappingReplacementsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ReadabilityModuleTest.cpp [clang-tidy] Add a test. 2017-08-10 12:38:46 +00:00
TransformerClangTidyCheckTest.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
UsingInserterTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00