Detect redundant uses of LLVM's cast and dyn_cast functions.
More...
#include <RedundantCastingCheck.h>
Detect redundant uses of LLVM's cast and dyn_cast functions.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvm/redundant-casting.html
Definition at line 20 of file llvm/RedundantCastingCheck.h.
◆ RedundantCastingCheck()
| clang::tidy::llvm_check::RedundantCastingCheck::RedundantCastingCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
|
inline |
◆ check()
| void clang::tidy::llvm_check::RedundantCastingCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ getCheckTraversalKind()
| std::optional< TraversalKind > clang::tidy::llvm_check::RedundantCastingCheck::getCheckTraversalKind |
( |
| ) |
const |
|
inlineoverride |
◆ isLanguageVersionSupported()
| bool clang::tidy::llvm_check::RedundantCastingCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
| void clang::tidy::llvm_check::RedundantCastingCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
The documentation for this class was generated from the following file: