mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Apply 'make format'
This commit is contained in:
parent
708f875b31
commit
1537c9badc
@ -493,7 +493,10 @@ string V3Options::fileExists(const string& filename) {
|
|||||||
try {
|
try {
|
||||||
for (const auto& dirEntry : std::filesystem::directory_iterator(dir.c_str()))
|
for (const auto& dirEntry : std::filesystem::directory_iterator(dir.c_str()))
|
||||||
setp->insert(dirEntry.path().filename().string());
|
setp->insert(dirEntry.path().filename().string());
|
||||||
} catch (std::filesystem::filesystem_error const& ex) { (void)ex; return ""; }
|
} catch (std::filesystem::filesystem_error const& ex) {
|
||||||
|
(void)ex;
|
||||||
|
return "";
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (DIR* const dirp = opendir(dir.c_str())) {
|
if (DIR* const dirp = opendir(dir.c_str())) {
|
||||||
while (struct dirent* direntp = readdir(dirp)) setp->insert(direntp->d_name);
|
while (struct dirent* direntp = readdir(dirp)) setp->insert(direntp->d_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user