clang-tools 23.0.0git
ParentVirtualCallCheck.cpp File Reference
#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"

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::tidy
namespace  clang::tidy::bugprone

Typedefs

using clang::tidy::bugprone::BasesVector = SmallVector<const CXXRecordDecl *, 5>

Functions

static bool clang::tidy::bugprone::isParentOf (const CXXRecordDecl &Parent, const CXXRecordDecl &ThisClass)
static BasesVector clang::tidy::bugprone::getParentsByGrandParent (const CXXRecordDecl &GrandParent, const CXXRecordDecl &ThisClass, const CXXMethodDecl &MemberDecl)
static std::string clang::tidy::bugprone::getNameAsString (const NamedDecl *Decl)
static std::string clang::tidy::bugprone::getExprAsString (const Expr &E, ASTContext &AC)