43 std::set<const Expr *> UnsafePointers;
45 auto MatchAction = [&UnsafePointers, &Ctx](
const DynTypedNode &Node) {
50 EntityPointerLevelSet Results;
52 for (
const Expr *Ptr : UnsafePointers) {
54 translateEntityPointerLevel(Ptr, Ctx, [
this](
const EntityName &EN) {
61 auto FilteredTranslation = llvm::make_filter_range(
62 *Translation, [](
const EntityPointerLevel &E) ->
bool {
63 return E.getPointerLevel() > 0;
65 Results.insert(FilteredTranslation.begin(), FilteredTranslation.end());
68 return Translation.takeError();
71 return std::make_unique<UnsafeBufferUsageEntitySummary>(
Defines the clang::ASTContext interface.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...