Move suffixedVariableNameList to utils.

This commit is contained in:
chriseth
2019-03-27 17:14:17 +01:00
parent 77b8b4874d
commit a1fe2562c4
4 changed files with 28 additions and 29 deletions
+6
View File
@@ -92,6 +92,12 @@ public:
/// Return value: pointer
std::string allocationFunction();
/// @returns a string containing a comma-separated list of variable names consisting of @a _baseName suffixed
/// with increasing integers in the range [@a _startSuffix, @a _endSuffix), if @a _startSuffix < @a _endSuffix,
/// and with decreasing integers in the range [@a _endSuffix, @a _startSuffix), if @a _endSuffix < @a _startSuffix.
/// If @a _startSuffix == @a _endSuffix, the empty string is returned.
static std::string suffixedVariableNameList(std::string const& _baseName, size_t _startSuffix, size_t _endSuffix);
private:
langutil::EVMVersion m_evmVersion;
std::shared_ptr<MultiUseYulFunctionCollector> m_functionCollector;