Remove trailing whitespace in missing visibility warning.

This commit is contained in:
Daniel Kirchner 2018-07-02 13:14:58 +02:00
parent 9a71b69f40
commit 9aefe2f118
4 changed files with 5 additions and 5 deletions

View File

@ -58,8 +58,8 @@ bool StaticAnalyzer::visit(FunctionDefinition const& _function)
_function.location(), _function.location(),
"No visibility specified. Defaulting to \"" + "No visibility specified. Defaulting to \"" +
Declaration::visibilityToString(_function.visibility()) + Declaration::visibilityToString(_function.visibility()) +
"\". " + "\"." +
(isInterface ? "In interfaces it defaults to external." : "") (isInterface ? " In interfaces it defaults to external." : "")
); );
if (_function.isImplemented()) if (_function.isImplemented())
m_currentFunction = &_function; m_currentFunction = &_function;

View File

@ -1,3 +1,3 @@
contract A { constructor() {} } contract A { constructor() {} }
// ---- // ----
// Warning: (13-29): No visibility specified. Defaulting to "public". // Warning: (13-29): No visibility specified. Defaulting to "public".

View File

@ -3,4 +3,4 @@ contract C {
function() {} function() {}
} }
// ---- // ----
// Warning: (90-103): No visibility specified. Defaulting to "public". // Warning: (90-103): No visibility specified. Defaulting to "public".

View File

@ -2,4 +2,4 @@ contract C {
function f() pure { } function f() pure { }
} }
// ---- // ----
// Warning: (17-38): No visibility specified. Defaulting to "public". // Warning: (17-38): No visibility specified. Defaulting to "public".