mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Cleanup misc clang-tidy warnings. No functional change intended
This commit is contained in:
+2
-3
@@ -70,12 +70,11 @@ class CMakeEmitter {
|
||||
cmake_set_raw(of, name, raw_value, cache_type, docstring);
|
||||
}
|
||||
|
||||
//Swap all backslashes for forward slashes, because of Windows
|
||||
// Swap all backslashes for forward slashes, because of Windows
|
||||
static string deslash(const string& s) {
|
||||
std::string res = s;
|
||||
for (string::iterator it = res.begin(); it != res.end(); ++it) {
|
||||
if (*it == '\\')
|
||||
*it = '/';
|
||||
if (*it == '\\') *it = '/';
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user