#include "MultiLevelImplicitPointerConversionCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
static unsigned getPointerLevel(const QualType &PtrType) { … }
namespace {
AST_MATCHER(ImplicitCastExpr, isMultiLevelPointerConversion) { … }
AST_MATCHER(QualType, isPointerType) { … }
}
void MultiLevelImplicitPointerConversionCheck::registerMatchers(
MatchFinder *Finder) { … }
std::optional<TraversalKind>
MultiLevelImplicitPointerConversionCheck::getCheckTraversalKind() const { … }
void MultiLevelImplicitPointerConversionCheck::check(
const MatchFinder::MatchResult &Result) { … }
}