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%|==|!=|/|>=|<=|&&"))
syntaxError(tok);
}
if (Token::simpleMatch(tok, ".") &&
!Token::simpleMatch(tok->previous(), ".") &&
!Token::simpleMatch(tok->next(), ".") &&
if (Token::simpleMatch(tok, ".") &&
!Token::simpleMatch(tok->previous(), ".") &&
!Token::simpleMatch(tok->next(), ".") &&
!Token::Match(tok->previous(), "{|, . %name% =")) {
if (!Token::Match(tok->previous(), ")|]|>|}|%name%"))
syntaxError(tok);

View File

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