#include "ParentVirtualCallCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/FixIt.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include <algorithm>
#include <cctype>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
BasesVector;
static bool isParentOf(const CXXRecordDecl &Parent,
const CXXRecordDecl &ThisClass) { … }
static BasesVector getParentsByGrandParent(const CXXRecordDecl &GrandParent,
const CXXRecordDecl &ThisClass,
const CXXMethodDecl &MemberDecl) { … }
static std::string getNameAsString(const NamedDecl *Decl) { … }
static std::string getExprAsString(const clang::Expr &E,
clang::ASTContext &AC) { … }
void ParentVirtualCallCheck::registerMatchers(MatchFinder *Finder) { … }
void ParentVirtualCallCheck::check(const MatchFinder::MatchResult &Result) { … }
}