astyle formatting

[ci skip]
This commit is contained in:
versat 2019-07-05 14:00:59 +02:00
parent 839fcddd8a
commit 57d44f1362
3 changed files with 4 additions and 3 deletions

View File

@ -955,7 +955,8 @@ const Token *Token::findmatch(const Token * const startTok, const char pattern[]
return nullptr;
}
void Token::function(const Function *f) {
void Token::function(const Function *f)
{
mImpl->mFunction = f;
if (f) {
if (f->isLambda())

View File

@ -766,7 +766,7 @@ public:
* Associate this token with given function
* @param f Function to be associated
*/
void function(const Function *f);
void function(const Function *f);
/**
* @return a pointer to the Function associated with this token.

View File

@ -9250,7 +9250,7 @@ void Tokenizer::findGarbageCode() const
syntaxError(tok);
if (Token::Match(tok, "[+-] [;,)]}]") && !(isCPP() && Token::Match(tok->previous(), "operator [+-] ;")))
syntaxError(tok);
if (Token::simpleMatch(tok, ",") &&
if (Token::simpleMatch(tok, ",") &&
!Token::Match(tok->tokAt(-2), "[ = , &|%name%")) {
if (Token::Match(tok->previous(), "(|[|{|<|%assign%|%or%|%oror%|==|!=|+|-|/|!|>=|<=|~|^|::|sizeof|throw|decltype|typeof"))
syntaxError(tok);