Adds a test to check_style.sh to check for spaces before colon (:) in range based for loops.

This commit is contained in:
Christian Parpart
2019-06-24 17:32:58 +02:00
committed by chriseth
parent 3b0284817e
commit 7b3aba81fb
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))