Cppcheck
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
clangimport::Data Struct Reference

Classes

struct  Decl
 

Public Member Functions

void enumDecl (const std::string &addr, Token *nameToken, Enumerator *enumerator)
 
void funcDecl (const std::string &addr, Token *nameToken, Function *function)
 
void scopeDecl (const std::string &addr, Scope *scope)
 
void varDecl (const std::string &addr, Token *def, Variable *var)
 
void replaceVarDecl (const Variable *from, Variable *to)
 
void ref (const std::string &addr, Token *tok)
 
std::vector< const Variable * > getVariableList () const
 
bool hasDecl (const std::string &addr) const
 
const ScopegetScope (const std::string &addr)
 

Public Attributes

const SettingsmSettings = nullptr
 
SymbolDatabasemSymbolDatabase = nullptr
 
int enumValue = 0
 
std::set< Token * > mNotScope
 
std::map< const Scope *, AccessControlscopeAccessControl
 

Private Member Functions

void notFound (const std::string &addr)
 

Private Attributes

std::map< std::string, DeclmDeclMap
 
std::map< std::string, std::vector< Token * > > mNotFound
 
int mVarId = 0
 

Detailed Description

Definition at line 207 of file clangimport.cpp.

Member Function Documentation

◆ enumDecl()

void clangimport::Data::enumDecl ( const std::string &  addr,
Token nameToken,
Enumerator enumerator 
)
inline

Definition at line 235 of file clangimport.cpp.

References Token::enumerator(), mDeclMap, and notFound().

◆ funcDecl()

void clangimport::Data::funcDecl ( const std::string &  addr,
Token nameToken,
Function function 
)
inline

Definition at line 242 of file clangimport.cpp.

References Token::function(), mDeclMap, and notFound().

◆ getScope()

const Scope* clangimport::Data::getScope ( const std::string &  addr)
inline

Definition at line 294 of file clangimport.cpp.

References mDeclMap.

◆ getVariableList()

std::vector<const Variable *> clangimport::Data::getVariableList ( ) const
inline

Definition at line 280 of file clangimport.cpp.

References mDeclMap, and mVarId.

Referenced by clangimport::parseClangAstDump().

◆ hasDecl()

bool clangimport::Data::hasDecl ( const std::string &  addr) const
inline

Definition at line 290 of file clangimport.cpp.

References mDeclMap.

◆ notFound()

void clangimport::Data::notFound ( const std::string &  addr)
inlineprivate

Definition at line 304 of file clangimport.cpp.

References mNotFound, and ref().

Referenced by enumDecl(), funcDecl(), and varDecl().

◆ ref()

void clangimport::Data::ref ( const std::string &  addr,
Token tok 
)
inline

Definition at line 272 of file clangimport.cpp.

References mDeclMap, and mNotFound.

Referenced by notFound().

◆ replaceVarDecl()

void clangimport::Data::replaceVarDecl ( const Variable from,
Variable to 
)
inline

Definition at line 264 of file clangimport.cpp.

References mDeclMap, and clangimport::Data::Decl::var.

◆ scopeDecl()

void clangimport::Data::scopeDecl ( const std::string &  addr,
Scope scope 
)
inline

Definition at line 249 of file clangimport.cpp.

References mDeclMap.

◆ varDecl()

void clangimport::Data::varDecl ( const std::string &  addr,
Token def,
Variable var 
)
inline

Member Data Documentation

◆ enumValue

int clangimport::Data::enumValue = 0

Definition at line 233 of file clangimport.cpp.

◆ mDeclMap

std::map<std::string, Decl> clangimport::Data::mDeclMap
private

◆ mNotFound

std::map<std::string, std::vector<Token *> > clangimport::Data::mNotFound
private

Definition at line 314 of file clangimport.cpp.

Referenced by notFound(), and ref().

◆ mNotScope

std::set<Token *> clangimport::Data::mNotScope

Definition at line 300 of file clangimport.cpp.

Referenced by clangimport::AstNode::createTokens1().

◆ mSettings

const Settings* clangimport::Data::mSettings = nullptr

Definition at line 230 of file clangimport.cpp.

Referenced by clangimport::parseClangAstDump().

◆ mSymbolDatabase

SymbolDatabase* clangimport::Data::mSymbolDatabase = nullptr

Definition at line 231 of file clangimport.cpp.

Referenced by clangimport::parseClangAstDump().

◆ mVarId

int clangimport::Data::mVarId = 0
private

Definition at line 315 of file clangimport.cpp.

Referenced by getVariableList(), and varDecl().

◆ scopeAccessControl

std::map<const Scope *, AccessControl> clangimport::Data::scopeAccessControl

Definition at line 302 of file clangimport.cpp.


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