mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #7772 from ethereum/trailingSpaces
Remove trailing spaces in output.
This commit is contained in:
		
						commit
						3f67912cf4
					
				| @ -54,17 +54,17 @@ ostream& KnownState::stream(ostream& _out) const | ||||
| 
 | ||||
| 	_out << "=== State ===" << endl; | ||||
| 	_out << "Stack height: " << dec << m_stackHeight << endl; | ||||
| 	_out << "Equivalence classes: " << endl; | ||||
| 	_out << "Equivalence classes:" << endl; | ||||
| 	for (Id eqClass = 0; eqClass < m_expressionClasses->size(); ++eqClass) | ||||
| 		streamExpressionClass(_out, eqClass); | ||||
| 
 | ||||
| 	_out << "Stack: " << endl; | ||||
| 	_out << "Stack:" << endl; | ||||
| 	for (auto const& it: m_stackElements) | ||||
| 	{ | ||||
| 		_out << "  " << dec << it.first << ": "; | ||||
| 		streamExpressionClass(_out, it.second); | ||||
| 	} | ||||
| 	_out << "Storage: " << endl; | ||||
| 	_out << "Storage:" << endl; | ||||
| 	for (auto const& it: m_storageContent) | ||||
| 	{ | ||||
| 		_out << "  "; | ||||
| @ -72,7 +72,7 @@ ostream& KnownState::stream(ostream& _out) const | ||||
| 		_out << ": "; | ||||
| 		streamExpressionClass(_out, it.second); | ||||
| 	} | ||||
| 	_out << "Memory: " << endl; | ||||
| 	_out << "Memory:" << endl; | ||||
| 	for (auto const& it: m_memoryContent) | ||||
| 	{ | ||||
| 		_out << "  "; | ||||
|  | ||||
| @ -438,7 +438,7 @@ void CompilerContext::appendInlineAssembly( | ||||
| 		parserResult = std::move(obj.code); | ||||
| 
 | ||||
| #ifdef SOL_OUTPUT_ASM | ||||
| 		cout << "After optimizer: " << endl; | ||||
| 		cout << "After optimizer:" << endl; | ||||
| 		cout << yul::AsmPrinter()(*parserResult) << endl; | ||||
| #endif | ||||
| 	} | ||||
|  | ||||
| @ -271,7 +271,7 @@ void CommandLineInterface::handleBinary(string const& _contract) | ||||
| 			createFile(m_compiler->filesystemFriendlyName(_contract) + ".bin", objectWithLinkRefsHex(m_compiler->object(_contract))); | ||||
| 		else | ||||
| 		{ | ||||
| 			sout() << "Binary: " << endl; | ||||
| 			sout() << "Binary:" << endl; | ||||
| 			sout() << objectWithLinkRefsHex(m_compiler->object(_contract)) << endl; | ||||
| 		} | ||||
| 	} | ||||
| @ -281,7 +281,7 @@ void CommandLineInterface::handleBinary(string const& _contract) | ||||
| 			createFile(m_compiler->filesystemFriendlyName(_contract) + ".bin-runtime", objectWithLinkRefsHex(m_compiler->runtimeObject(_contract))); | ||||
| 		else | ||||
| 		{ | ||||
| 			sout() << "Binary of the runtime part: " << endl; | ||||
| 			sout() << "Binary of the runtime part:" << endl; | ||||
| 			sout() << objectWithLinkRefsHex(m_compiler->runtimeObject(_contract)) << endl; | ||||
| 		} | ||||
| 	} | ||||
| @ -293,7 +293,7 @@ void CommandLineInterface::handleOpcode(string const& _contract) | ||||
| 		createFile(m_compiler->filesystemFriendlyName(_contract) + ".opcode", dev::eth::disassemble(m_compiler->object(_contract).bytecode)); | ||||
| 	else | ||||
| 	{ | ||||
| 		sout() << "Opcodes: " << endl; | ||||
| 		sout() << "Opcodes:" << endl; | ||||
| 		sout() << std::uppercase << dev::eth::disassemble(m_compiler->object(_contract).bytecode); | ||||
| 		sout() << endl; | ||||
| 	} | ||||
| @ -307,7 +307,7 @@ void CommandLineInterface::handleIR(string const& _contractName) | ||||
| 			createFile(m_compiler->filesystemFriendlyName(_contractName) + ".yul", m_compiler->yulIR(_contractName)); | ||||
| 		else | ||||
| 		{ | ||||
| 			sout() << "IR: " << endl; | ||||
| 			sout() << "IR:" << endl; | ||||
| 			sout() << m_compiler->yulIR(_contractName) << endl; | ||||
| 		} | ||||
| 	} | ||||
| @ -327,7 +327,7 @@ void CommandLineInterface::handleEWasm(string const& _contractName) | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			sout() << "EWasm text: " << endl; | ||||
| 			sout() << "EWasm text:" << endl; | ||||
| 			sout() << m_compiler->eWasm(_contractName) << endl; | ||||
| 			sout() << "EWasm binary (hex): " << m_compiler->eWasmObject(_contractName).toHex() << endl; | ||||
| 		} | ||||
| @ -355,7 +355,7 @@ void CommandLineInterface::handleSignatureHashes(string const& _contract) | ||||
| 	if (m_args.count(g_argOutputDir)) | ||||
| 		createFile(m_compiler->filesystemFriendlyName(_contract) + ".signatures", out); | ||||
| 	else | ||||
| 		sout() << "Function signatures: " << endl << out; | ||||
| 		sout() << "Function signatures:" << endl << out; | ||||
| } | ||||
| 
 | ||||
| void CommandLineInterface::handleMetadata(string const& _contract) | ||||
| @ -367,7 +367,7 @@ void CommandLineInterface::handleMetadata(string const& _contract) | ||||
| 	if (m_args.count(g_argOutputDir)) | ||||
| 		createFile(m_compiler->filesystemFriendlyName(_contract) + "_meta.json", data); | ||||
| 	else | ||||
| 		sout() << "Metadata: " << endl << data << endl; | ||||
| 		sout() << "Metadata:" << endl << data << endl; | ||||
| } | ||||
| 
 | ||||
| void CommandLineInterface::handleABI(string const& _contract) | ||||
| @ -379,7 +379,7 @@ void CommandLineInterface::handleABI(string const& _contract) | ||||
| 	if (m_args.count(g_argOutputDir)) | ||||
| 		createFile(m_compiler->filesystemFriendlyName(_contract) + ".abi", data); | ||||
| 	else | ||||
| 		sout() << "Contract JSON ABI " << endl << data << endl; | ||||
| 		sout() << "Contract JSON ABI" << endl << data << endl; | ||||
| } | ||||
| 
 | ||||
| void CommandLineInterface::handleNatspec(bool _natspecDev, string const& _contract) | ||||
| @ -563,7 +563,7 @@ bool CommandLineInterface::parseLibraryOption(string const& _input) | ||||
| 				addrString = addrString.substr(2); | ||||
| 			if (addrString.empty()) | ||||
| 			{ | ||||
| 				serr() << "Empty address provided for library \"" << libName << "\": " << endl; | ||||
| 				serr() << "Empty address provided for library \"" << libName << "\":" << endl; | ||||
| 				serr() << "Note that there should not be any whitespace after the colon." << endl; | ||||
| 				return false; | ||||
| 			} | ||||
|  | ||||
| @ -141,7 +141,7 @@ public: | ||||
| 			cout << "  (e)xpr inline/(i)nline/(s)implify/varname c(l)eaner/(u)nusedprune/ss(a) transform/" << endl; | ||||
| 			cout << "  (r)edundant assign elim./re(m)aterializer/f(o)r-loop-init-rewriter/for-loop-condition-(I)nto-body/" << endl; | ||||
| 			cout << "  for-loop-condition-(O)ut-of-body/s(t)ructural simplifier/equi(v)alent function combiner/ssa re(V)erser/" << endl; | ||||
| 			cout << "  co(n)trol flow simplifier/stack com(p)ressor/(D)ead code eliminator/(L)oad resolver/ " << endl; | ||||
| 			cout << "  co(n)trol flow simplifier/stack com(p)ressor/(D)ead code eliminator/(L)oad resolver/" << endl; | ||||
| 			cout << "  (C)onditional simplifier?" << endl; | ||||
| 			cout.flush(); | ||||
| 			int option = readStandardInputChar(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user