SymbolDatabase: rename _constness to mConstness
This commit is contained in:
parent
5154eb10c6
commit
67b111f11e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue