Returns keyword sets to function-local static const.

This commit is contained in:
Williham Totland 2020-03-12 14:07:57 +01:00
parent 4c06edcb22
commit 700a6720c4

View File

@ -121,32 +121,32 @@ namespace {
return set.find(keyword) != set.end();
}
const keyword_set special_keywords {
"ELAPSED",
"MAXDPR",
"MAXDSG",
"MAXDSO",
"MAXDSW",
"NAIMFRAC",
"NEWTON",
"NLINEARS",
"NLINSMAX",
"NLINSMIN",
"RUNSUM",
"STEPTYPE",
"WNEWTON",
};
bool is_special(const std::string& keyword) {
return is_in_set(special_keywords, keyword);
static const keyword_set specialkw {
"ELAPSED",
"MAXDPR",
"MAXDSG",
"MAXDSO",
"MAXDSW",
"NAIMFRAC",
"NEWTON",
"NLINEARS",
"NLINSMAX",
"NLINSMIN",
"RUNSUM",
"STEPTYPE",
"WNEWTON",
};
return is_in_set(specialkw, keyword);
}
const keyword_set udq_blacklist {
"SUMTHIN",
};
bool is_udq_blacklist(const std::string& keyword) {
return is_in_set(udq_blacklist, keyword);
static const keyword_set udq_blacklistkw {
"SUMTHIN",
};
return is_in_set(udq_blacklistkw, keyword);
}
bool is_udq(const std::string& keyword) {