MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / ~SymbolDatabase

Method ~SymbolDatabase

lib/symboldatabase.cpp:1941–1952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1939}
1940
1941SymbolDatabase::~SymbolDatabase()
1942{
1943 // Clear scope, type, function and variable pointers
1944 for (Token* tok = mTokenizer.list.front(); tok; tok = tok->next()) {
1945 tok->scope(nullptr);
1946 tok->type(nullptr);
1947 tok->function(nullptr);
1948 tok->variable(nullptr);
1949 tok->enumerator(nullptr);
1950 tok->setValueType(nullptr);
1951 }
1952}
1953
1954bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const Token *&funcStart, const Token *&argStart, const Token*& declEnd) const
1955{

Callers

nothing calls this directly

Calls 7

frontMethod · 0.80
nextMethod · 0.80
scopeMethod · 0.80
typeMethod · 0.80
variableMethod · 0.80
functionMethod · 0.45
setValueTypeMethod · 0.45

Tested by

no test coverage detected