mirror of https://github.com/YosysHQ/yosys.git
kernel/rtlil: Trailing whitespace cleanup
This commit is contained in:
parent
b59c717245
commit
ef7e358576
|
@ -443,13 +443,13 @@ namespace RTLIL
|
|||
static inline std::string encode_filename(const std::string &filename)
|
||||
{
|
||||
std::stringstream val;
|
||||
if (!std::any_of(filename.begin(), filename.end(), [](char c) {
|
||||
return static_cast<unsigned char>(c) < 33 || static_cast<unsigned char>(c) > 126;
|
||||
if (!std::any_of(filename.begin(), filename.end(), [](char c) {
|
||||
return static_cast<unsigned char>(c) < 33 || static_cast<unsigned char>(c) > 126;
|
||||
})) return filename;
|
||||
for (unsigned char const c : filename) {
|
||||
if (c < 33 || c > 126)
|
||||
val << stringf("$%02x", c);
|
||||
else
|
||||
else
|
||||
val << c;
|
||||
}
|
||||
return val.str();
|
||||
|
|
Loading…
Reference in New Issue