Skip to content

FindPrivateVariablesVisitor

#include <Visitors.h>

Inherits from clang::RecursiveASTVisitor< FindPrivateVariablesVisitor >

Public Functions

Name
FindPrivateVariablesVisitor(clang::SourceLocation TopSourceLocation, clang::SourceManager & SM)
bool VisitExpr(clang::Expr * E)
Visit function for Expressions.
std::set< clang::VarDecl * > & getVarSet()

Private Attributes

Name
clang::SourceManager & SM
clang::SourceLocation RegionTopSourceLocation
std::set< clang::VarDecl * > VarSet

Public Functions Documentation

function FindPrivateVariablesVisitor

1
2
3
4
inline FindPrivateVariablesVisitor(
    clang::SourceLocation TopSourceLocation,
    clang::SourceManager & SM
)

function VisitExpr

1
2
3
bool VisitExpr(
    clang::Expr * E
)

Visit function for Expressions.

Parameters:

  • E Given expression

Expression Visitor in FindPrivateVariablesVisitor

function getVarSet

1
inline std::set< clang::VarDecl * > & getVarSet()

Private Attributes Documentation

variable SM

1
clang::SourceManager & SM;

variable RegionTopSourceLocation

1
clang::SourceLocation RegionTopSourceLocation;

variable VarSet

1
std::set< clang::VarDecl * > VarSet;

Last update: 2021-11-24
Back to top