mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-10 17:58:07 +00:00
logger.cc: Don't unquote args
This commit is contained in:
parent
d6f3ac60f1
commit
51dc09ca4a
1 changed files with 0 additions and 4 deletions
|
@ -106,7 +106,6 @@ struct LoggerPass : public Pass {
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-warn" && argidx+1 < args.size()) {
|
if (args[argidx] == "-warn" && argidx+1 < args.size()) {
|
||||||
std::string pattern = args[++argidx];
|
std::string pattern = args[++argidx];
|
||||||
if (pattern.front() == '\"' && pattern.back() == '\"') pattern = pattern.substr(1, pattern.size() - 2);
|
|
||||||
try {
|
try {
|
||||||
log("Added regex '%s' for warnings to warn list.\n", pattern);
|
log("Added regex '%s' for warnings to warn list.\n", pattern);
|
||||||
log_warn_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
log_warn_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
||||||
|
@ -118,7 +117,6 @@ struct LoggerPass : public Pass {
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-nowarn" && argidx+1 < args.size()) {
|
if (args[argidx] == "-nowarn" && argidx+1 < args.size()) {
|
||||||
std::string pattern = args[++argidx];
|
std::string pattern = args[++argidx];
|
||||||
if (pattern.front() == '\"' && pattern.back() == '\"') pattern = pattern.substr(1, pattern.size() - 2);
|
|
||||||
try {
|
try {
|
||||||
log("Added regex '%s' for warnings to nowarn list.\n", pattern);
|
log("Added regex '%s' for warnings to nowarn list.\n", pattern);
|
||||||
log_nowarn_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
log_nowarn_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
||||||
|
@ -130,7 +128,6 @@ struct LoggerPass : public Pass {
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-werror" && argidx+1 < args.size()) {
|
if (args[argidx] == "-werror" && argidx+1 < args.size()) {
|
||||||
std::string pattern = args[++argidx];
|
std::string pattern = args[++argidx];
|
||||||
if (pattern.front() == '\"' && pattern.back() == '\"') pattern = pattern.substr(1, pattern.size() - 2);
|
|
||||||
try {
|
try {
|
||||||
log("Added regex '%s' for warnings to werror list.\n", pattern);
|
log("Added regex '%s' for warnings to werror list.\n", pattern);
|
||||||
log_werror_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
log_werror_regexes.push_back(YS_REGEX_COMPILE(pattern));
|
||||||
|
@ -164,7 +161,6 @@ struct LoggerPass : public Pass {
|
||||||
if ((type=="error" || type=="prefix-error") && log_expect_error.size()>0)
|
if ((type=="error" || type=="prefix-error") && log_expect_error.size()>0)
|
||||||
log_cmd_error("Only single error message can be expected !\n");
|
log_cmd_error("Only single error message can be expected !\n");
|
||||||
std::string pattern = args[++argidx];
|
std::string pattern = args[++argidx];
|
||||||
if (pattern.front() == '\"' && pattern.back() == '\"') pattern = pattern.substr(1, pattern.size() - 2);
|
|
||||||
int count = atoi(args[++argidx].c_str());
|
int count = atoi(args[++argidx].c_str());
|
||||||
if (count<=0)
|
if (count<=0)
|
||||||
log_cmd_error("Number of expected messages must be higher then 0 !\n");
|
log_cmd_error("Number of expected messages must be higher then 0 !\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue