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)
|
void Variable::evaluate(const Library* lib)
|
||||||
{
|
{
|
||||||
unsigned int pointer = 0;
|
unsigned int pointer = 0;
|
||||||
_constness = 0;
|
mConstness = 0;
|
||||||
|
|
||||||
if (mNameToken)
|
if (mNameToken)
|
||||||
setFlag(fIsArray, arrayDimensions(lib));
|
setFlag(fIsArray, arrayDimensions(lib));
|
||||||
|
@ -1639,7 +1639,7 @@ void Variable::evaluate(const Library* lib)
|
||||||
setFlag(fIsMutable, true);
|
setFlag(fIsMutable, true);
|
||||||
else if (tok->str() == "const") {
|
else if (tok->str() == "const") {
|
||||||
setFlag(fIsConst, true);
|
setFlag(fIsConst, true);
|
||||||
_constness |= 1 << pointer;
|
mConstness |= 1 << pointer;
|
||||||
} else if (tok->str() == "*") {
|
} else if (tok->str() == "*") {
|
||||||
setFlag(fIsPointer, !isArray() || Token::Match(tok->previous(), "( * %name% )"));
|
setFlag(fIsPointer, !isArray() || Token::Match(tok->previous(), "( * %name% )"));
|
||||||
setFlag(fIsConst, false); // Points to const, isn't necessarily const itself
|
setFlag(fIsConst, false); // Points to const, isn't necessarily const itself
|
||||||
|
|
|
@ -228,7 +228,7 @@ public:
|
||||||
mIndex(index_),
|
mIndex(index_),
|
||||||
mAccess(access_),
|
mAccess(access_),
|
||||||
_flags(0),
|
_flags(0),
|
||||||
_constness(0),
|
mConstness(0),
|
||||||
_type(type_),
|
_type(type_),
|
||||||
_scope(scope_) {
|
_scope(scope_) {
|
||||||
evaluate(lib);
|
evaluate(lib);
|
||||||
|
@ -600,7 +600,7 @@ public:
|
||||||
void setFlags(const ValueType &valuetype);
|
void setFlags(const ValueType &valuetype);
|
||||||
|
|
||||||
unsigned int constness() const {
|
unsigned int constness() const {
|
||||||
return _constness;
|
return mConstness;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -634,7 +634,7 @@ private:
|
||||||
unsigned int _flags;
|
unsigned int _flags;
|
||||||
|
|
||||||
/** @brief constness (same encoding as ValueType::constness) */
|
/** @brief constness (same encoding as ValueType::constness) */
|
||||||
unsigned int _constness;
|
unsigned int mConstness;
|
||||||
|
|
||||||
/** @brief pointer to user defined type info (for known types) */
|
/** @brief pointer to user defined type info (for known types) */
|
||||||
const Type *_type;
|
const Type *_type;
|
||||||
|
|
Loading…
Reference in New Issue