Constructors : Fixed so the test that kush_eplus added works
This commit is contained in:
parent
f63f223976
commit
f8087b1f3f
|
@ -168,13 +168,13 @@ const TOKEN * CheckClass::FindClassFunction( const TOKEN *tok, const char classn
|
||||||
if ( indentlevel == 1 )
|
if ( indentlevel == 1 )
|
||||||
{
|
{
|
||||||
// Member function implemented in the class declaration?
|
// 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;
|
const TOKEN *tok2 = tok;
|
||||||
while ( tok2 && tok2->str() != "{" && tok2->str() != ";" )
|
while ( tok2 && tok2->str() != "{" && tok2->str() != ";" )
|
||||||
tok2 = tok2->next;
|
tok2 = tok2->next;
|
||||||
if ( tok2 && tok2->str() == "{" )
|
if ( tok2 && tok2->str() == "{" )
|
||||||
return tok;
|
return tok->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ private:
|
||||||
|
|
||||||
TEST_CASE( initvar_private_constructor ); // BUG 2354171 - private constructor
|
TEST_CASE( initvar_private_constructor ); // BUG 2354171 - private constructor
|
||||||
|
|
||||||
// TODO TEST_CASE( initvar_destructor );
|
TEST_CASE( initvar_destructor );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue