C++11: handle inline namespaces.

Change-Id: Iafdcd5bc72d9724e217767ae9c216be4363cc0d3
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-02-02 10:19:58 +01:00
parent c27a463fe7
commit 13dd213f60
8 changed files with 35 additions and 2 deletions

View File

@@ -1817,6 +1817,8 @@ unsigned NamedTypeSpecifierAST::lastToken() const
/** \generated */
unsigned NamespaceAST::firstToken() const
{
if (inline_token)
return inline_token;
if (namespace_token)
return namespace_token;
if (identifier_token)
@@ -1843,6 +1845,8 @@ unsigned NamespaceAST::lastToken() const
return identifier_token + 1;
if (namespace_token)
return namespace_token + 1;
if (inline_token)
return inline_token + 1;
return 1;
}