mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 01:24:10 +00:00
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)
|
static inline std::string encode_filename(const std::string &filename)
|
||||||
{
|
{
|
||||||
std::stringstream val;
|
std::stringstream val;
|
||||||
if (!std::any_of(filename.begin(), filename.end(), [](char c) {
|
if (!std::any_of(filename.begin(), filename.end(), [](char c) {
|
||||||
return static_cast<unsigned char>(c) < 33 || static_cast<unsigned char>(c) > 126;
|
return static_cast<unsigned char>(c) < 33 || static_cast<unsigned char>(c) > 126;
|
||||||
})) return filename;
|
})) return filename;
|
||||||
for (unsigned char const c : filename) {
|
for (unsigned char const c : filename) {
|
||||||
if (c < 33 || c > 126)
|
if (c < 33 || c > 126)
|
||||||
val << stringf("$%02x", c);
|
val << stringf("$%02x", c);
|
||||||
else
|
else
|
||||||
val << c;
|
val << c;
|
||||||
}
|
}
|
||||||
return val.str();
|
return val.str();
|
||||||
|
|
Loading…
Reference in a new issue