Merge pull request #178 from workhorsy/cleanup
Small cleanup of style and junk comments.
This commit is contained in:
commit
465effa32b
|
@ -59,3 +59,4 @@ protected:
|
|||
|
||||
MessageSet _messages;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,3 +59,4 @@ class EnumArrayLiteralCheck : BaseAnalyzer
|
|||
autoDec.accept(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -140,4 +140,3 @@ void assertAnalyzerWarnings(string code, analysis.run.AnalyzerCheck analyzers, s
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -53,23 +53,16 @@ unittest
|
|||
{
|
||||
string person = "unknown";
|
||||
if (person == "unknown") // [warn]: "Else" branch is identical to "Then" branch.
|
||||
{
|
||||
person = "bobrick"; // same
|
||||
}
|
||||
else
|
||||
{
|
||||
person = "bobrick"; // same
|
||||
}
|
||||
|
||||
if (person == "unknown") // ok
|
||||
{
|
||||
person = "ricky"; // not same
|
||||
}
|
||||
else
|
||||
{
|
||||
person = "bobby"; // not same
|
||||
}
|
||||
}
|
||||
}c, analysis.run.AnalyzerCheck.if_else_same_check);
|
||||
stderr.writeln("Unittest for IfElseSameCheck passed.");
|
||||
}
|
||||
|
||||
|
|
|
@ -58,3 +58,4 @@ unittest
|
|||
|
||||
stderr.writeln("Unittest for NumberStyleCheck passed.");
|
||||
}
|
||||
|
||||
|
|
|
@ -4,3 +4,4 @@ public import analysis.style;
|
|||
public import analysis.enumarrayliteral;
|
||||
public import analysis.pokemon;
|
||||
public import analysis.base;
|
||||
|
||||
|
|
|
@ -97,3 +97,4 @@ unittest
|
|||
|
||||
stderr.writeln("Unittest for PokemonExceptionCheck passed.");
|
||||
}
|
||||
|
||||
|
|
|
@ -335,3 +335,4 @@ class UnusedVariableCheck : BaseAnalyzer
|
|||
|
||||
bool blockStatementIntroducesScope = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1519,3 +1519,4 @@ class XMLPrinter : ASTVisitor
|
|||
|
||||
File output;
|
||||
}
|
||||
|
||||
|
|
1
ctags.d
1
ctags.d
|
@ -168,3 +168,4 @@ class CTagsPrinter : ASTVisitor
|
|||
int suppressDepth;
|
||||
string context;
|
||||
}
|
||||
|
||||
|
|
|
@ -832,3 +832,4 @@ private:
|
|||
IndentStyle style;
|
||||
Sink sink;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,3 +75,4 @@ void writeSpan(string cssClass, string value)
|
|||
else
|
||||
stdout.write(`<span class="`, cssClass, `">`, value.replace("&", "&").replace("<", "<"), `</span>`);
|
||||
}
|
||||
|
||||
|
|
1
stats.d
1
stats.d
|
@ -52,3 +52,4 @@ ulong printLineCount(Tokens)(File output, string fileName, ref Tokens tokens)
|
|||
output.writefln("%s:\t%d", fileName, count);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
|
@ -4614,3 +4614,4 @@ version(none) struct TemplateAllocator
|
|||
}
|
||||
static shared TemplateAllocator it;
|
||||
}
|
||||
|
||||
|
|
|
@ -2147,3 +2147,4 @@ immutable HtmlEntity[] characterEntities = [
|
|||
HtmlEntity("zwj", "\u200D"),
|
||||
HtmlEntity("zwnj", "\u200C")
|
||||
];
|
||||
|
||||
|
|
|
@ -1968,3 +1968,4 @@ unittest
|
|||
assert (toks(`'\xAY'`).messages[0] == DLexer.Message(1,5,"Error: 2 hex digits expected.",true));
|
||||
assert (toks(`'\xXX'`).messages[0] == DLexer.Message(1,4,"Error: 2 hex digits expected.",true));
|
||||
}
|
||||
|
||||
|
|
|
@ -1259,7 +1259,7 @@ class ClassFive(A, B) : Super if (someTest()) {}}c;
|
|||
assert (classZero.structBody is null);
|
||||
|
||||
auto classOne = p.parseClassDeclaration();
|
||||
assert (classOne.name.text == "ClassOne"); // FIXME classOne.name.text is "ClassZero" on my machine TM
|
||||
assert (classOne.name.text == "ClassOne");
|
||||
assert (classOne.structBody.declarations.length == 0);
|
||||
assert (classOne.baseClassList is null);
|
||||
assert (classOne.constraint is null);
|
||||
|
@ -7018,3 +7018,4 @@ protected:
|
|||
int _traceDepth;
|
||||
string comment;
|
||||
}
|
||||
|
||||
|
|
|
@ -772,3 +772,4 @@ struct LexerRange
|
|||
*/
|
||||
size_t line;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue