Rename
This commit is contained in:
parent
5d2aebbf0a
commit
956dd204dc
|
@ -39,7 +39,7 @@ import analysis.undocumented;
|
||||||
import analysis.comma_expression;
|
import analysis.comma_expression;
|
||||||
import analysis.function_attributes;
|
import analysis.function_attributes;
|
||||||
import analysis.local_imports;
|
import analysis.local_imports;
|
||||||
import analysis.immutable_finder;
|
import analysis.unmodified;
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ MessageSet analyze(string fileName, const Module m,
|
||||||
if (analysisConfig.function_attribute_check) checks ~= new FunctionAttributeCheck(fileName);
|
if (analysisConfig.function_attribute_check) checks ~= new FunctionAttributeCheck(fileName);
|
||||||
if (analysisConfig.comma_expression_check) checks ~= new CommaExpressionCheck(fileName);
|
if (analysisConfig.comma_expression_check) checks ~= new CommaExpressionCheck(fileName);
|
||||||
if (analysisConfig.local_import_check) checks ~= new LocalImportCheck(fileName);
|
if (analysisConfig.local_import_check) checks ~= new LocalImportCheck(fileName);
|
||||||
if (analysisConfig.could_be_immutable_check) checks ~= new ImmutableFinder(fileName);
|
if (analysisConfig.could_be_immutable_check) checks ~= new UnmodifiedFinder(fileName);
|
||||||
|
|
||||||
foreach (check; checks)
|
foreach (check; checks)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
module analysis.immutable_finder;
|
module analysis.unmodified;
|
||||||
|
|
||||||
import std.container;
|
import std.container;
|
||||||
import std.d.ast;
|
import std.d.ast;
|
||||||
|
@ -12,7 +12,7 @@ import analysis.base;
|
||||||
/**
|
/**
|
||||||
* Checks for variables that could have been declared const or immutable
|
* Checks for variables that could have been declared const or immutable
|
||||||
*/
|
*/
|
||||||
class ImmutableFinder:BaseAnalyzer
|
class UnmodifiedFinder:BaseAnalyzer
|
||||||
{
|
{
|
||||||
alias visit = BaseAnalyzer.visit;
|
alias visit = BaseAnalyzer.visit;
|
||||||
|
|
Loading…
Reference in New Issue