Merge pull request #6991 from ethereum/check_style-no-space-before-range-based-for-loop-colon

Adds a test to check_style.sh to check for spaces before colon (:) in range based for loops.
This commit is contained in:
chriseth
2019-06-24 17:42:06 +02:00
committed by GitHub
3 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -456,15 +456,13 @@ bool ASTJsonConverter::visit(ArrayTypeName const& _node)
bool ASTJsonConverter::visit(InlineAssembly const& _node)
{
Json::Value externalReferences(Json::arrayValue);
for (auto const& it : _node.annotation().externalReferences)
{
for (auto const& it: _node.annotation().externalReferences)
if (it.first)
{
Json::Value tuple(Json::objectValue);
tuple[it.first->name.str()] = inlineAssemblyIdentifierToJson(it);
externalReferences.append(tuple);
}
}
setJsonNode(_node, "InlineAssembly", {
make_pair("operations", Json::Value(yul::AsmPrinter()(_node.operations()))),
make_pair("externalReferences", std::move(externalReferences))