mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds a test to check_style.sh to check for spaces before colon (:) in range based for loops.
This commit is contained in:
1 parent
3b0284817e
commit
7b3aba81fb
3 files changed
+3
-7
No files matched your search
@@ -1102,8 +1102,7 @@ void CommandLineInterface::handleAst(string const& _argStr)
|
||||
for (auto const& sourceCode: m_sourceCodes)
|
||||
asts.push_back(&m_compiler->ast(sourceCode.first));
|
||||
map<ASTNode const*, eth::GasMeter::GasConsumption> gasCosts;
|
||||
for (auto const& contract : m_compiler->contractNames())
|
||||
{
|
||||
for (auto const& contract: m_compiler->contractNames())
|
||||
if (auto const* assemblyItems = m_compiler->runtimeAssemblyItems(contract))
|
||||
{
|
||||
auto ret = GasEstimator::breakToStatementLevel(
|
||||
@@ -1114,8 +1113,6 @@ void CommandLineInterface::handleAst(string const& _argStr)
|
||||
gasCosts[it.first] += it.second;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool legacyFormat = !m_args.count(g_argAstCompactJson);
|
||||
if (m_args.count(g_argOutputDir))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user