CTU: Refactoring; Use ValueFlow::Value::errorSeverity
This commit is contained in:
parent
f2d7cb3ab6
commit
5cc61e55f9
|
@ -316,7 +316,7 @@ CTU::FileInfo *CTU::getFileInfo(const Tokenizer *tokenizer)
|
||||||
functionCall.callArgNr = argnr + 1;
|
functionCall.callArgNr = argnr + 1;
|
||||||
functionCall.callArgumentExpression = argtok->expressionString();
|
functionCall.callArgumentExpression = argtok->expressionString();
|
||||||
functionCall.callArgValue = value.intvalue;
|
functionCall.callArgValue = value.intvalue;
|
||||||
functionCall.warning = (value.condition != nullptr);
|
functionCall.warning = !value.errorSeverity();
|
||||||
for (const ErrorPathItem &i : value.errorPath) {
|
for (const ErrorPathItem &i : value.errorPath) {
|
||||||
ErrorLogger::ErrorMessage::FileLocation loc;
|
ErrorLogger::ErrorMessage::FileLocation loc;
|
||||||
loc.setfile(tokenizer->list.file(i.first));
|
loc.setfile(tokenizer->list.file(i.first));
|
||||||
|
|
Loading…
Reference in New Issue