Constructors : Fixed so the test that kush_eplus added works

This commit is contained in:
Daniel Marjamäki 2008-12-07 06:58:23 +00:00
parent f63f223976
commit f8087b1f3f
2 changed files with 3 additions and 3 deletions

View File

@ -168,13 +168,13 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn
if ( indentlevel == 1 )
{
// Member function implemented in the class declaration?
if ( TOKEN::Match( tok, "%var1% (", _funcname ) )
if (!TOKEN::Match(tok,"~") && TOKEN::Match(tok->next, "%var1% (", _funcname))
{
const TOKEN *tok2 = tok;
while ( tok2 && tok2->str() != "{" && tok2->str() != ";" )
tok2 = tok2->next;
if ( tok2 && tok2->str() == "{" )
return tok;
return tok->next;
}
}

View File

@ -69,7 +69,7 @@ private:
TEST_CASE( initvar_private_constructor ); // BUG 2354171 - private constructor
// TODO TEST_CASE( initvar_destructor );
TEST_CASE( initvar_destructor );
}