SymbolDatabase: rename _constness to mConstness

This commit is contained in:
Daniel Marjamäki 2018-06-16 16:13:26 +02:00
parent 5154eb10c6
commit 67b111f11e
2 changed files with 5 additions and 5 deletions

View File

@ -1617,7 +1617,7 @@ const Token * Variable::declEndToken() const
void Variable::evaluate(const Library* lib)
{
unsigned int pointer = 0;
_constness = 0;
mConstness = 0;
if (mNameToken)
setFlag(fIsArray, arrayDimensions(lib));
@ -1639,7 +1639,7 @@ void Variable::evaluate(const Library* lib)
setFlag(fIsMutable, true);
else if (tok->str() == "const") {
setFlag(fIsConst, true);
_constness |= 1 << pointer;
mConstness |= 1 << pointer;
} else if (tok->str() == "*") {
setFlag(fIsPointer, !isArray() || Token::Match(tok->previous(), "( * %name% )"));
setFlag(fIsConst, false); // Points to const, isn't necessarily const itself

View File

@ -228,7 +228,7 @@ public:
mIndex(index_),
mAccess(access_),
_flags(0),
_constness(0),
mConstness(0),
_type(type_),
_scope(scope_) {
evaluate(lib);
@ -600,7 +600,7 @@ public:
void setFlags(const ValueType &valuetype);
unsigned int constness() const {
return _constness;
return mConstness;
}
private:
@ -634,7 +634,7 @@ private:
unsigned int _flags;
/** @brief constness (same encoding as ValueType::constness) */
unsigned int _constness;
unsigned int mConstness;
/** @brief pointer to user defined type info (for known types) */
const Type *_type;