diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index abdee2720..5fd6cfe25 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1672,7 +1672,7 @@ void Variable::evaluate(const Library* lib) setFlag(fIsStlType, Token::simpleMatch(mTypeStartToken, "std ::")); setFlag(fIsStlString, isStlType() && (Token::Match(mTypeStartToken->tokAt(2), "string|wstring|u16string|u32string !!::") || (Token::simpleMatch(mTypeStartToken->tokAt(2), "basic_string <") && !Token::simpleMatch(mTypeStartToken->linkAt(3), "> ::")))); } - if (_access == Argument) { + if (mAccess == Argument) { tok = mNameToken; if (!tok) { // Argument without name @@ -2623,7 +2623,7 @@ void SymbolDatabase::printVariable(const Variable *var, const char *indent) cons } } std::cout << indent << "mIndex: " << var->index() << std::endl; - std::cout << indent << "_access: " << + std::cout << indent << "mAccess: " << (var->isPublic() ? "Public" : var->isProtected() ? "Protected" : var->isPrivate() ? "Private" : @@ -3005,7 +3005,7 @@ void SymbolDatabase::printXml(std::ostream &out) const out << " isReference=\"" << var->isReference() << '\"'; out << " isStatic=\"" << var->isStatic() << '\"'; out << " constness=\"" << var->constness() << '\"'; - out << " access=\"" << accessControlToString(var->_access) << '\"'; + out << " access=\"" << accessControlToString(var->mAccess) << '\"'; out << "/>" << std::endl; } out << " " << std::endl; diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 66990271e..dc1122225 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -226,7 +226,7 @@ public: mTypeStartToken(start_), mTypeEndToken(end_), mIndex(index_), - _access(access_), + mAccess(access_), _flags(0), _constness(0), _type(type_), @@ -312,7 +312,7 @@ public: * @return true if public, false if not */ bool isPublic() const { - return _access == Public; + return mAccess == Public; } /** @@ -320,7 +320,7 @@ public: * @return true if protected, false if not */ bool isProtected() const { - return _access == Protected; + return mAccess == Protected; } /** @@ -328,7 +328,7 @@ public: * @return true if private, false if not */ bool isPrivate() const { - return _access == Private; + return mAccess == Private; } /** @@ -336,7 +336,7 @@ public: * @return true if global, false if not */ bool isGlobal() const { - return _access == Global; + return mAccess == Global; } /** @@ -344,7 +344,7 @@ public: * @return true if in a namespace, false if not */ bool isNamespace() const { - return _access == Namespace; + return mAccess == Namespace; } /** @@ -352,7 +352,7 @@ public: * @return true if a function argument, false if not */ bool isArgument() const { - return _access == Argument; + return mAccess == Argument; } /** @@ -360,7 +360,7 @@ public: * @return true if local, false if not */ bool isLocal() const { - return (_access == Local) && !isExtern(); + return (mAccess == Local) && !isExtern(); } /** @@ -408,7 +408,7 @@ public: * @return true if throw type, false if not */ bool isThrow() const { - return _access == Throw; + return mAccess == Throw; } /** @@ -628,7 +628,7 @@ private: std::size_t mIndex; /** @brief what section is this variable declared in? */ - AccessControl _access; // public/protected/private + AccessControl mAccess; // public/protected/private /** @brief flags */ unsigned int _flags;