Fix issue when parsing anonymous namespaces
This commit is contained in:
parent
6a09a5253e
commit
75fbc577ad
3 changed files with 25 additions and 2 deletions
|
|
@ -60,6 +60,12 @@ namespace cppast
|
|||
return inline_;
|
||||
}
|
||||
|
||||
/// \returns Whether or not the namespace is anonymous.
|
||||
bool is_anonymous() const noexcept
|
||||
{
|
||||
return name().empty();
|
||||
}
|
||||
|
||||
private:
|
||||
cpp_namespace(std::string name, bool is_inline)
|
||||
: cpp_entity(std::move(name)), inline_(is_inline)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue