Redundant assignment: check that --enable=style has been used.
This commit is contained in:
parent
e501b6a460
commit
32c05fef92
|
@ -545,6 +545,8 @@ const Token *CheckOther::checkRedundantAssignmentRecursive(const Token *assign1,
|
||||||
|
|
||||||
void CheckOther::checkRedundantAssignment()
|
void CheckOther::checkRedundantAssignment()
|
||||||
{
|
{
|
||||||
|
if (!mSettings->isEnabled(Settings::STYLE))
|
||||||
|
return;
|
||||||
const SymbolDatabase* symbolDatabase = mTokenizer->getSymbolDatabase();
|
const SymbolDatabase* symbolDatabase = mTokenizer->getSymbolDatabase();
|
||||||
for (const Scope *scope : symbolDatabase->functionScopes) {
|
for (const Scope *scope : symbolDatabase->functionScopes) {
|
||||||
if (!scope->bodyStart)
|
if (!scope->bodyStart)
|
||||||
|
|
Loading…
Reference in New Issue