Comments and (failing) tests
This commit is contained in:
parent
76fb7dee43
commit
037619964f
2 changed files with 28 additions and 2 deletions
|
|
@ -33,6 +33,16 @@ namespace c
|
|||
/// namespace {
|
||||
/// }
|
||||
namespace {}
|
||||
|
||||
/// namespace e{
|
||||
/// namespace f{
|
||||
/// }
|
||||
/// }
|
||||
namespace e::f {}
|
||||
|
||||
/// \entity e::f
|
||||
/// namespace f{
|
||||
/// }
|
||||
)";
|
||||
|
||||
auto file = parse({}, "cpp_namespace.cpp", code);
|
||||
|
|
@ -69,6 +79,19 @@ namespace {}
|
|||
REQUIRE(!ns.is_inline());
|
||||
REQUIRE(no_children == 0u);
|
||||
}
|
||||
else if (ns.name() == "e")
|
||||
{
|
||||
REQUIRE(!ns.is_anonymous());
|
||||
REQUIRE(!ns.is_inline());
|
||||
REQUIRE(no_children == 1u);
|
||||
}
|
||||
else if (ns.name() == "f")
|
||||
{
|
||||
REQUIRE(!ns.is_anonymous());
|
||||
check_parent(ns, "e", "e::f");
|
||||
REQUIRE(!ns.is_inline());
|
||||
REQUIRE(no_children == 0u);
|
||||
}
|
||||
else
|
||||
REQUIRE(false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue