#include "OwningMemoryCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include <string>
#include <vector>
usingnamespaceclang::ast_matchers;
usingnamespaceclang::ast_matchers::internal;
namespace clang::tidy::cppcoreguidelines {
namespace {
AST_MATCHER_P(LambdaExpr, hasCallOperator, Matcher<CXXMethodDecl>,
InnerMatcher) { … }
AST_MATCHER_P(LambdaExpr, hasLambdaBody, Matcher<Stmt>, InnerMatcher) { … }
}
void OwningMemoryCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void OwningMemoryCheck::registerMatchers(MatchFinder *Finder) { … }
void OwningMemoryCheck::check(const MatchFinder::MatchResult &Result) { … }
bool OwningMemoryCheck::handleDeletion(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleLegacyConsumers(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleExpectedOwner(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleAssignmentAndInit(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleAssignmentFromNewOwner(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleReturnValues(const BoundNodes &Nodes) { … }
bool OwningMemoryCheck::handleOwnerMembers(const BoundNodes &Nodes) { … }
}