astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2019-07-03 08:29:47 +02:00
parent 8f4cb36e1e
commit f84dcc4738
2 changed files with 6 additions and 6 deletions

View File

@ -9233,9 +9233,9 @@ void Tokenizer::findGarbageCode() const
if (Token::Match(tok->next(), ")|]|>|%assign%|%or%|%oror%|==|!=|/|>=|<=|&&")) if (Token::Match(tok->next(), ")|]|>|%assign%|%or%|%oror%|==|!=|/|>=|<=|&&"))
syntaxError(tok); syntaxError(tok);
} }
if (Token::simpleMatch(tok, ".") && if (Token::simpleMatch(tok, ".") &&
!Token::simpleMatch(tok->previous(), ".") && !Token::simpleMatch(tok->previous(), ".") &&
!Token::simpleMatch(tok->next(), ".") && !Token::simpleMatch(tok->next(), ".") &&
!Token::Match(tok->previous(), "{|, . %name% =")) { !Token::Match(tok->previous(), "{|, . %name% =")) {
if (!Token::Match(tok->previous(), ")|]|>|}|%name%")) if (!Token::Match(tok->previous(), ")|]|>|}|%name%"))
syntaxError(tok); syntaxError(tok);

View File

@ -4091,10 +4091,10 @@ private:
functionVariableUsage("void foo() {\n" functionVariableUsage("void foo() {\n"
" const int MyInt = 1;\n" " const int MyInt = 1;\n"
" class bar {\n" " class bar {\n"
" public:\n" " public:\n"
" bool operator()(const int &uIndexA, const int &uIndexB) const {\n" " bool operator()(const int &uIndexA, const int &uIndexB) const {\n"
" return true;\n" " return true;\n"
" }\n" " }\n"
" bar() {}\n" " bar() {}\n"
" };\n" " };\n"
" return MyInt;\n" " return MyInt;\n"