clang API Documentation
#include <PseudoConstantAnalysis.h>
Public Member Functions | |
PseudoConstantAnalysis (const Stmt *DeclBody) | |
~PseudoConstantAnalysis () | |
bool | isPseudoConstant (const VarDecl *VD) |
bool | wasReferenced (const VarDecl *VD) |
Definition at line 23 of file PseudoConstantAnalysis.h.
PseudoConstantAnalysis::PseudoConstantAnalysis | ( | const Stmt * | DeclBody | ) |
Definition at line 29 of file PseudoConstantAnalysis.cpp.
Definition at line 35 of file PseudoConstantAnalysis.cpp.
bool PseudoConstantAnalysis::isPseudoConstant | ( | const VarDecl * | VD | ) |
Definition at line 41 of file PseudoConstantAnalysis.cpp.
References clang::VarDecl::hasLocalStorage(), clang::VarDecl::isStaticLocal(), and clang::frontend::RunAnalysis.
bool PseudoConstantAnalysis::wasReferenced | ( | const VarDecl * | VD | ) |
Definition at line 57 of file PseudoConstantAnalysis.cpp.
References clang::frontend::RunAnalysis.