Detects explicit type casting operations that involve the same source and destination types, and subsequently recommend their removal.
More...
#include <RedundantCastingCheck.h>
Detects explicit type casting operations that involve the same source and destination types, and subsequently recommend their removal.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-casting.html
Definition at line 21 of file readability/RedundantCastingCheck.h.
◆ RedundantCastingCheck()
| clang::tidy::readability::RedundantCastingCheck::RedundantCastingCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
◆ check()
| void clang::tidy::readability::RedundantCastingCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ getCheckTraversalKind()
| std::optional< TraversalKind > clang::tidy::readability::RedundantCastingCheck::getCheckTraversalKind |
( |
| ) |
const |
|
inlineoverride |
◆ registerMatchers()
| void clang::tidy::readability::RedundantCastingCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
◆ storeOptions()
The documentation for this class was generated from the following files: