clang 20.0.0git
Public Attributes | List of all members
clang::dataflow::ReferencedDecls Struct Reference

A collection of several types of declarations, all referenced from the same function. More...

#include "clang/Analysis/FlowSensitive/ASTOps.h"

Public Attributes

FieldSet Fields
 Non-static member variables.
 
llvm::DenseSet< const VarDecl * > Globals
 All variables with static storage duration, notably including static member variables and static variables declared within a function.
 
llvm::DenseSet< const VarDecl * > Locals
 Local variables, not including parameters or static variables declared within a function.
 
llvm::DenseSet< const FunctionDecl * > Functions
 Free functions and member functions which are referenced (but not necessarily called).
 
llvm::DenseSet< const ParmVarDecl * > LambdaCapturedParams
 When analyzing a lambda's call operator, the set of all parameters (from the surrounding function) that the lambda captures.
 

Detailed Description

A collection of several types of declarations, all referenced from the same function.

Definition at line 137 of file ASTOps.h.

Member Data Documentation

◆ Fields

FieldSet clang::dataflow::ReferencedDecls::Fields

◆ Functions

llvm::DenseSet<const FunctionDecl *> clang::dataflow::ReferencedDecls::Functions

Free functions and member functions which are referenced (but not necessarily called).

Definition at line 148 of file ASTOps.h.

Referenced by clang::dataflow::ReferencedDeclsVisitor::VisitDecl(), clang::dataflow::ReferencedDeclsVisitor::VisitDeclRefExpr(), and clang::dataflow::ReferencedDeclsVisitor::VisitMemberExpr().

◆ Globals

llvm::DenseSet<const VarDecl *> clang::dataflow::ReferencedDecls::Globals

All variables with static storage duration, notably including static member variables and static variables declared within a function.

Definition at line 142 of file ASTOps.h.

Referenced by clang::dataflow::ReferencedDeclsVisitor::VisitDecl(), clang::dataflow::ReferencedDeclsVisitor::VisitDeclRefExpr(), and clang::dataflow::ReferencedDeclsVisitor::VisitMemberExpr().

◆ LambdaCapturedParams

llvm::DenseSet<const ParmVarDecl *> clang::dataflow::ReferencedDecls::LambdaCapturedParams

When analyzing a lambda's call operator, the set of all parameters (from the surrounding function) that the lambda captures.

Captured local variables are already included in Locals above.

Definition at line 152 of file ASTOps.h.

◆ Locals

llvm::DenseSet<const VarDecl *> clang::dataflow::ReferencedDecls::Locals

Local variables, not including parameters or static variables declared within a function.

Definition at line 145 of file ASTOps.h.

Referenced by clang::dataflow::ReferencedDeclsVisitor::VisitDecl(), and clang::dataflow::ReferencedDeclsVisitor::VisitDeclRefExpr().


The documentation for this struct was generated from the following file: