gui: update copyright message in about dialog
This commit is contained in:
parent
3704aa98d0
commit
af26f00e04
|
@ -78,7 +78,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="mCopyright">
|
||||
<property name="text">
|
||||
<string>Copyright © 2007-2017 Cppcheck team.</string>
|
||||
<string>Copyright © 2007-2018 Cppcheck team.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
|
|
@ -1942,26 +1942,27 @@ void Tokenizer::simplifyRoundCurlyParentheses()
|
|||
void Tokenizer::simplifySQL()
|
||||
{
|
||||
for (Token *tok = list.front(); tok; tok = tok->next()) {
|
||||
if (Token::simpleMatch(tok, "__CPPCHECK_EMBEDDED_SQL_EXEC__ SQL")) {
|
||||
const Token *end = findSQLBlockEnd(tok);
|
||||
if (end == nullptr)
|
||||
syntaxError(nullptr);
|
||||
if (!Token::simpleMatch(tok, "__CPPCHECK_EMBEDDED_SQL_EXEC__ SQL"))
|
||||
continue;
|
||||
|
||||
const std::string instruction = tok->stringifyList(end);
|
||||
// delete all tokens until the embedded SQL block end
|
||||
Token::eraseTokens(tok, end);
|
||||
const Token *end = findSQLBlockEnd(tok);
|
||||
if (end == nullptr)
|
||||
syntaxError(nullptr);
|
||||
|
||||
// insert "asm ( "instruction" ) ;"
|
||||
tok->str("asm");
|
||||
// it can happen that 'end' is NULL when wrong code is inserted
|
||||
if (!tok->next())
|
||||
tok->insertToken(";");
|
||||
tok->insertToken(")");
|
||||
tok->insertToken("\"" + instruction + "\"");
|
||||
tok->insertToken("(");
|
||||
// jump to ';' and continue
|
||||
tok = tok->tokAt(3);
|
||||
}
|
||||
const std::string instruction = tok->stringifyList(end);
|
||||
// delete all tokens until the embedded SQL block end
|
||||
Token::eraseTokens(tok, end);
|
||||
|
||||
// insert "asm ( "instruction" ) ;"
|
||||
tok->str("asm");
|
||||
// it can happen that 'end' is NULL when wrong code is inserted
|
||||
if (!tok->next())
|
||||
tok->insertToken(";");
|
||||
tok->insertToken(")");
|
||||
tok->insertToken("\"" + instruction + "\"");
|
||||
tok->insertToken("(");
|
||||
// jump to ';' and continue
|
||||
tok = tok->tokAt(3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10058,7 +10059,7 @@ void Tokenizer::SimplifyNamelessRValueReferences()
|
|||
}
|
||||
}
|
||||
|
||||
const Token *Tokenizer::findSQLBlockEnd(const Token *tokSQLStart) const
|
||||
const Token *Tokenizer::findSQLBlockEnd(const Token *tokSQLStart)
|
||||
{
|
||||
const Token *tokLastEnd = nullptr;
|
||||
for (const Token *tok = tokSQLStart->tokAt(2); tok != nullptr; tok = tok->next()) {
|
||||
|
|
|
@ -719,7 +719,7 @@ private:
|
|||
void printUnknownTypes() const;
|
||||
|
||||
/** Find end of SQL (or PL/SQL) block */
|
||||
const Token *findSQLBlockEnd(const Token *tokSQLStart) const;
|
||||
static const Token *findSQLBlockEnd(const Token *tokSQLStart);
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in New Issue