Add debug-severity to Severity::SeverityType.
This commit is contained in:
parent
f54f28530b
commit
ba5017cf05
|
@ -33,7 +33,7 @@ class Tokenizer;
|
||||||
class Severity
|
class Severity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum SeverityType { none, error, style };
|
enum SeverityType { none, error, style, debug };
|
||||||
static std::string toString(SeverityType severity)
|
static std::string toString(SeverityType severity)
|
||||||
{
|
{
|
||||||
switch (severity)
|
switch (severity)
|
||||||
|
@ -44,6 +44,8 @@ public:
|
||||||
return "error";
|
return "error";
|
||||||
case style:
|
case style:
|
||||||
return "style";
|
return "style";
|
||||||
|
case debug:
|
||||||
|
return "debug";
|
||||||
};
|
};
|
||||||
return "???";
|
return "???";
|
||||||
}
|
}
|
||||||
|
@ -57,6 +59,8 @@ public:
|
||||||
return error;
|
return error;
|
||||||
if (severity == "style")
|
if (severity == "style")
|
||||||
return style;
|
return style;
|
||||||
|
if (severity == "debug")
|
||||||
|
return debug;
|
||||||
return none;
|
return none;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue