@@ -2789,10 +2789,10 @@ static bool typesMatch(
2789
2789
const Token *&new_second)
2790
2790
{
2791
2791
// get first type
2792
- const Type* first_type = first_scope->check ->findType(first_token, first_scope, /*lookOutside*/ true);
2792
+ const Type* first_type = first_scope->symdb ->findType (first_token, first_scope, /* lookOutside*/ true );
2793
2793
if (first_type) {
2794
2794
// get second type
2795
- const Type* second_type = second_scope->check ->findType(second_token, second_scope, /*lookOutside*/ true);
2795
+ const Type* second_type = second_scope->symdb ->findType (second_token, second_scope, /* lookOutside*/ true );
2796
2796
// check if types match
2797
2797
if (first_type == second_type) {
2798
2798
const Token* tok1 = first_token;
@@ -3566,7 +3566,7 @@ const Token *Type::initBaseInfo(const Token *tok, const Token *tok1)
3566
3566
}
3567
3567
}
3568
3568
3569
- const Type * baseType = classScope->check ->findType(base.nameTok, enclosingScope);
3569
+ const Type * baseType = classScope->symdb ->findType (base.nameTok , enclosingScope);
3570
3570
if (baseType && !baseType->findDependency (this ))
3571
3571
base.type = baseType;
3572
3572
@@ -4716,17 +4716,17 @@ const Variable* Function::getArgumentVar(nonneg int num) const
4716
4716
4717
4717
// ---------------------------------------------------------------------------
4718
4718
4719
- Scope::Scope(const SymbolDatabase *check_ , const Token *classDef_, const Scope *nestedIn_, ScopeType type_, const Token *start_) :
4720
- check(check_ ),
4719
+ Scope::Scope (const SymbolDatabase *symdb_ , const Token *classDef_, const Scope *nestedIn_, ScopeType type_, const Token *start_) :
4720
+ symdb(symdb_ ),
4721
4721
classDef(classDef_),
4722
4722
nestedIn(nestedIn_),
4723
4723
type(type_)
4724
4724
{
4725
4725
setBodyStartEnd (start_);
4726
4726
}
4727
4727
4728
- Scope::Scope(const SymbolDatabase *check_ , const Token *classDef_, const Scope *nestedIn_) :
4729
- check(check_ ),
4728
+ Scope::Scope (const SymbolDatabase *symdb_ , const Token *classDef_, const Scope *nestedIn_) :
4729
+ symdb(symdb_ ),
4730
4730
classDef(classDef_),
4731
4731
nestedIn(nestedIn_)
4732
4732
{
@@ -4800,7 +4800,7 @@ void Scope::getVariableList(const Settings& settings)
4800
4800
4801
4801
// global scope
4802
4802
else if (type == Scope::eGlobal)
4803
- getVariableList(settings, check ->mTokenizer.tokens(), nullptr);
4803
+ getVariableList (settings, symdb ->mTokenizer .tokens (), nullptr );
4804
4804
4805
4805
// forward declaration
4806
4806
else
@@ -4970,14 +4970,14 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con
4970
4970
4971
4971
if (vartok->varId () == 0 ) {
4972
4972
if (!vartok->isBoolean ())
4973
- check ->debugMessage(vartok, "varid0", "Scope::checkVariable found variable \'" + vartok->str() + "\' with varid 0.");
4973
+ symdb ->debugMessage (vartok, " varid0" , " Scope::checkVariable found variable \' " + vartok->str () + " \' with varid 0." );
4974
4974
return tok;
4975
4975
}
4976
4976
4977
4977
const Type *vType = nullptr ;
4978
4978
4979
4979
if (typetok) {
4980
- vType = findVariableTypeIncludingUsedNamespaces(check , this, typetok);
4980
+ vType = findVariableTypeIncludingUsedNamespaces (symdb , this , typetok);
4981
4981
4982
4982
const_cast <Token *>(typetok)->type (vType);
4983
4983
}
@@ -5050,7 +5050,7 @@ bool Scope::isVariableDeclaration(const Token* const tok, const Token*& vartok,
5050
5050
if (isCPP && Token::Match (tok, " throw|new" ))
5051
5051
return false ;
5052
5052
5053
- const bool isCPP11 = isCPP && check ->mSettings.standards.cpp >= Standards::CPP11;
5053
+ const bool isCPP11 = isCPP && symdb ->mSettings .standards .cpp >= Standards::CPP11;
5054
5054
5055
5055
if (isCPP11 && tok->str () == " using" )
5056
5056
return false ;
@@ -7246,7 +7246,7 @@ static const Token* parsedecl(const Token* type,
7246
7246
valuetype->container = container;
7247
7247
} else {
7248
7248
const Scope *scope = type->scope ();
7249
- valuetype->typeScope = scope->check ->findScope(typeTokens.front(), scope);
7249
+ valuetype->typeScope = scope->symdb ->findScope (typeTokens.front (), scope);
7250
7250
if (valuetype->typeScope )
7251
7251
valuetype->type = (scope->type == Scope::ScopeType::eClass) ? ValueType::Type::RECORD : ValueType::Type::NONSTD;
7252
7252
}
0 commit comments