#6801 C: FN variable scope, FP unused value?. Fix typo from d7aa65c1fc
This commit is contained in:
parent
11538c84f6
commit
0849deed01
|
@ -55,7 +55,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
||||||
tok->progressValue());
|
tok->progressValue());
|
||||||
// Locate next class
|
// Locate next class
|
||||||
if ((_tokenizer->isCPP() && Token::Match(tok, "class|struct|union|namespace ::| %name% {|:|::|<") && tok->strAt(-1) != "friend")
|
if ((_tokenizer->isCPP() && Token::Match(tok, "class|struct|union|namespace ::| %name% {|:|::|<") && tok->strAt(-1) != "friend")
|
||||||
|| (_tokenizer->isC() && Token::Match(tok, "struct|union| %name% {"))) {
|
|| (_tokenizer->isC() && Token::Match(tok, "struct|union %name% {"))) {
|
||||||
const Token *tok2 = tok->tokAt(2);
|
const Token *tok2 = tok->tokAt(2);
|
||||||
|
|
||||||
if (tok->strAt(1) == "::")
|
if (tok->strAt(1) == "::")
|
||||||
|
|
Loading…
Reference in New Issue