#include "RedundantCastingCheck.h"
#include "../utils/FixItHintUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
static bool areTypesEqual(QualType S, QualType D) { … }
static bool areTypesEqual(QualType TypeS, QualType TypeD,
bool IgnoreTypeAliases) { … }
static bool areBinaryOperatorOperandsTypesEqualToOperatorResultType(
const Expr *E, bool IgnoreTypeAliases) { … }
static const Decl *getSourceExprDecl(const Expr *SourceExpr) { … }
RedundantCastingCheck::RedundantCastingCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void RedundantCastingCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void RedundantCastingCheck::registerMatchers(MatchFinder *Finder) { … }
void RedundantCastingCheck::check(const MatchFinder::MatchResult &Result) { … }
}