Add semantic parent to forward declarable entities
This commit is contained in:
parent
cf7ea80768
commit
599f2bbff8
20 changed files with 260 additions and 109 deletions
|
|
@ -170,20 +170,23 @@ int d() {}
|
|||
}
|
||||
else if (func.name() == "e")
|
||||
REQUIRE(func.is_definition());
|
||||
else if (func.name() == "b::b")
|
||||
else if (func.name() == "b")
|
||||
{
|
||||
REQUIRE(func.semantic_scope() == "b::");
|
||||
REQUIRE(func.is_declaration());
|
||||
REQUIRE(func.definition());
|
||||
check_definition(func.definition().value(), "b::b");
|
||||
}
|
||||
else if (func.name() == "b::f")
|
||||
else if (func.name() == "f")
|
||||
{
|
||||
REQUIRE(func.semantic_scope() == "b::");
|
||||
REQUIRE(func.is_declaration());
|
||||
REQUIRE(func.definition());
|
||||
check_definition(func.definition().value(), "b::f");
|
||||
}
|
||||
else if (func.name() == "b::operator int")
|
||||
else if (func.name() == "operator int")
|
||||
{
|
||||
REQUIRE(func.semantic_scope() == "b::");
|
||||
REQUIRE(func.is_declaration());
|
||||
REQUIRE(func.definition());
|
||||
check_definition(func.definition().value(), "operator int");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue