Try to make Travis happy

This commit is contained in:
Daniel Marjamäki 2020-05-03 20:46:29 +02:00
parent 901eb15c93
commit 8c57055a0b
1 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ InternalError::InternalError(const Token *tok, const std::string &errorMsg, Type
} }
ErrorLogger::ErrorMessage::ErrorMessage() ErrorLogger::ErrorMessage::ErrorMessage()
: severity(Severity::none), incomplete(false), cwe(0U), inconclusive(false) : incomplete(false), severity(Severity::none), cwe(0U), inconclusive(false)
{ {
} }
@ -67,8 +67,8 @@ ErrorLogger::ErrorMessage::ErrorMessage(const std::list<FileLocation> &callStack
callStack(callStack), // locations for this error message callStack(callStack), // locations for this error message
id(id), // set the message id id(id), // set the message id
file0(file1), file0(file1),
severity(severity), // severity for this error message
incomplete(false), incomplete(false),
severity(severity), // severity for this error message
cwe(0U), cwe(0U),
inconclusive(inconclusive) inconclusive(inconclusive)
{ {
@ -82,8 +82,8 @@ ErrorLogger::ErrorMessage::ErrorMessage(const std::list<FileLocation> &callStack
callStack(callStack), // locations for this error message callStack(callStack), // locations for this error message
id(id), // set the message id id(id), // set the message id
file0(file1), file0(file1),
severity(severity), // severity for this error message
incomplete(false), incomplete(false),
severity(severity), // severity for this error message
cwe(cwe.id), cwe(cwe.id),
inconclusive(inconclusive) inconclusive(inconclusive)
{ {
@ -92,7 +92,7 @@ ErrorLogger::ErrorMessage::ErrorMessage(const std::list<FileLocation> &callStack
} }
ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack, const TokenList* list, Severity::SeverityType severity, const std::string& id, const std::string& msg, bool inconclusive) ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack, const TokenList* list, Severity::SeverityType severity, const std::string& id, const std::string& msg, bool inconclusive)
: id(id), severity(severity), incomplete(false), cwe(0U), inconclusive(inconclusive) : id(id), incomplete(false), severity(severity), cwe(0U), inconclusive(inconclusive)
{ {
// Format callstack // Format callstack
for (std::list<const Token *>::const_iterator it = callstack.begin(); it != callstack.end(); ++it) { for (std::list<const Token *>::const_iterator it = callstack.begin(); it != callstack.end(); ++it) {
@ -111,7 +111,7 @@ ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack
ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack, const TokenList* list, Severity::SeverityType severity, const std::string& id, const std::string& msg, const CWE &cwe, bool inconclusive) ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack, const TokenList* list, Severity::SeverityType severity, const std::string& id, const std::string& msg, const CWE &cwe, bool inconclusive)
: id(id), severity(severity), incomplete(false), cwe(cwe.id), inconclusive(inconclusive) : id(id), incomplete(false), severity(severity), cwe(cwe.id), inconclusive(inconclusive)
{ {
// Format callstack // Format callstack
for (const Token *tok: callstack) { for (const Token *tok: callstack) {
@ -129,7 +129,7 @@ ErrorLogger::ErrorMessage::ErrorMessage(const std::list<const Token*>& callstack
} }
ErrorLogger::ErrorMessage::ErrorMessage(const ErrorPath &errorPath, const TokenList *tokenList, Severity::SeverityType severity, const char id[], const std::string &msg, const CWE &cwe, bool inconclusive) ErrorLogger::ErrorMessage::ErrorMessage(const ErrorPath &errorPath, const TokenList *tokenList, Severity::SeverityType severity, const char id[], const std::string &msg, const CWE &cwe, bool inconclusive)
: id(id), severity(severity), incomplete(false), cwe(cwe.id), inconclusive(inconclusive) : id(id), incomplete(false), severity(severity), cwe(cwe.id), inconclusive(inconclusive)
{ {
// Format callstack // Format callstack
for (ErrorPath::const_iterator it = errorPath.begin(); it != errorPath.end(); ++it) { for (ErrorPath::const_iterator it = errorPath.begin(); it != errorPath.end(); ++it) {
@ -148,8 +148,8 @@ ErrorLogger::ErrorMessage::ErrorMessage(const ErrorPath &errorPath, const TokenL
} }
ErrorLogger::ErrorMessage::ErrorMessage(const tinyxml2::XMLElement * const errmsg) ErrorLogger::ErrorMessage::ErrorMessage(const tinyxml2::XMLElement * const errmsg)
: severity(Severity::none), : incomplete(false),
incomplete(false), severity(Severity::none),
cwe(0U), cwe(0U),
inconclusive(false) inconclusive(false)
{ {