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