Renamed _enabled
This commit is contained in:
parent
37bcec8804
commit
bea6b32157
|
@ -23,7 +23,7 @@
|
||||||
bool Settings::_terminated;
|
bool Settings::_terminated;
|
||||||
|
|
||||||
Settings::Settings()
|
Settings::Settings()
|
||||||
: _enabled(0),
|
: mEnabled(0),
|
||||||
debug(false),
|
debug(false),
|
||||||
debugnormal(false),
|
debugnormal(false),
|
||||||
debugwarnings(false),
|
debugwarnings(false),
|
||||||
|
@ -72,25 +72,25 @@ std::string Settings::addEnabled(const std::string &str)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str == "all") {
|
if (str == "all") {
|
||||||
_enabled |= WARNING | STYLE | PERFORMANCE | PORTABILITY | INFORMATION | UNUSED_FUNCTION | MISSING_INCLUDE;
|
mEnabled |= WARNING | STYLE | PERFORMANCE | PORTABILITY | INFORMATION | UNUSED_FUNCTION | MISSING_INCLUDE;
|
||||||
} else if (str == "warning") {
|
} else if (str == "warning") {
|
||||||
_enabled |= WARNING;
|
mEnabled |= WARNING;
|
||||||
} else if (str == "style") {
|
} else if (str == "style") {
|
||||||
_enabled |= STYLE;
|
mEnabled |= STYLE;
|
||||||
} else if (str == "performance") {
|
} else if (str == "performance") {
|
||||||
_enabled |= PERFORMANCE;
|
mEnabled |= PERFORMANCE;
|
||||||
} else if (str == "portability") {
|
} else if (str == "portability") {
|
||||||
_enabled |= PORTABILITY;
|
mEnabled |= PORTABILITY;
|
||||||
} else if (str == "information") {
|
} else if (str == "information") {
|
||||||
_enabled |= INFORMATION | MISSING_INCLUDE;
|
mEnabled |= INFORMATION | MISSING_INCLUDE;
|
||||||
} else if (str == "unusedFunction") {
|
} else if (str == "unusedFunction") {
|
||||||
_enabled |= UNUSED_FUNCTION;
|
mEnabled |= UNUSED_FUNCTION;
|
||||||
} else if (str == "missingInclude") {
|
} else if (str == "missingInclude") {
|
||||||
_enabled |= MISSING_INCLUDE;
|
mEnabled |= MISSING_INCLUDE;
|
||||||
}
|
}
|
||||||
#ifdef CHECK_INTERNAL
|
#ifdef CHECK_INTERNAL
|
||||||
else if (str == "internal") {
|
else if (str == "internal") {
|
||||||
_enabled |= INTERNAL;
|
mEnabled |= INTERNAL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** @brief enable extra checks by id */
|
/** @brief enable extra checks by id */
|
||||||
int _enabled;
|
int mEnabled;
|
||||||
|
|
||||||
/** @brief terminate checking */
|
/** @brief terminate checking */
|
||||||
static bool _terminated;
|
static bool _terminated;
|
||||||
|
@ -185,7 +185,7 @@ public:
|
||||||
* @return true if the check is enabled.
|
* @return true if the check is enabled.
|
||||||
*/
|
*/
|
||||||
bool isEnabled(EnabledGroup group) const {
|
bool isEnabled(EnabledGroup group) const {
|
||||||
return (_enabled & group) == group;
|
return (mEnabled & group) == group;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -212,7 +212,7 @@ public:
|
||||||
* @brief Disables all severities, except from error.
|
* @brief Disables all severities, except from error.
|
||||||
*/
|
*/
|
||||||
void clearEnabled() {
|
void clearEnabled() {
|
||||||
_enabled = 0;
|
mEnabled = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Language {
|
enum Language {
|
||||||
|
|
Loading…
Reference in New Issue