parent
8f4cb36e1e
commit
f84dcc4738
|
@ -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);
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue