forked from OSchip/llvm-project
39c4246e1e
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 |
||
---|---|---|
.. | ||
AddConstTest.cpp | ||
CMakeLists.txt | ||
ClangTidyDiagnosticConsumerTest.cpp | ||
ClangTidyOptionsTest.cpp | ||
ClangTidyTest.h | ||
GlobListTest.cpp | ||
GoogleModuleTest.cpp | ||
IncludeInserterTest.cpp | ||
LLVMModuleTest.cpp | ||
NamespaceAliaserTest.cpp | ||
ObjCModuleTest.cpp | ||
OverlappingReplacementsTest.cpp | ||
ReadabilityModuleTest.cpp | ||
TransformerClangTidyCheckTest.cpp | ||
UsingInserterTest.cpp |