9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_VIRTUAL_NEAR_MISS_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_VIRTUAL_NEAR_MISS_H 12 #include "../ClangTidyCheck.h" 13 #include "llvm/ADT/DenseMap.h" 31 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
38 bool isPossibleToBeOverridden(
const CXXMethodDecl *BaseMD);
44 bool isOverriddenByDerivedClass(
const CXXMethodDecl *BaseMD,
45 const CXXRecordDecl *DerivedRD);
49 llvm::DenseMap<const CXXMethodDecl *, bool> PossibleMap;
54 llvm::DenseMap<std::pair<const CXXMethodDecl *, const CXXRecordDecl *>,
bool>
57 const unsigned EditDistanceThreshold = 1;
64 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_VIRTUAL_NEAR_MISS_H void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
VirtualNearMissCheck(StringRef Name, ClangTidyContext *Context)
Base class for all clang-tidy checks.
Checks for near miss of virtual methods.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
static constexpr llvm::StringLiteral Name
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.