Refactoring: Removed 'possibleError'
This commit is contained in:
parent
d0e122079f
commit
4c6858fa9c
|
@ -101,8 +101,6 @@ protected:
|
||||||
std::list<const Token *> callstack;
|
std::list<const Token *> callstack;
|
||||||
if (tok)
|
if (tok)
|
||||||
callstack.push_back(tok);
|
callstack.push_back(tok);
|
||||||
else if (severity == Severity::possibleError)
|
|
||||||
return; // don't list inconclusive checks in the --errorlist output
|
|
||||||
reportError(callstack, severity, id, msg);
|
reportError(callstack, severity, id, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,7 @@ private:
|
||||||
class Severity
|
class Severity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum e { error, style, possibleError };
|
enum e { error, style };
|
||||||
static std::string stringify(e severity)
|
static std::string stringify(e severity)
|
||||||
{
|
{
|
||||||
switch (severity)
|
switch (severity)
|
||||||
|
@ -331,8 +331,6 @@ public:
|
||||||
return "error";
|
return "error";
|
||||||
case style:
|
case style:
|
||||||
return "style";
|
return "style";
|
||||||
case possibleError:
|
|
||||||
return "possible error";
|
|
||||||
};
|
};
|
||||||
return "???";
|
return "???";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue