forked from qt-creator/qt-creator
C++11: handle inline namespaces.
Change-Id: Iafdcd5bc72d9724e217767ae9c216be4363cc0d3 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
1
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
1
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
@@ -2123,6 +2123,7 @@ bool Bind::visit(NamespaceAST *ast)
|
||||
Namespace *ns = control()->newNamespace(sourceLocation, namespaceName);
|
||||
ns->setStartOffset(tokenAt(sourceLocation).end()); // the scope starts after the namespace or the identifier token.
|
||||
ns->setEndOffset(tokenAt(ast->lastToken() - 1).end());
|
||||
ns->setInline(ast->inline_token != 0);
|
||||
ast->symbol = ns;
|
||||
_scope->addMember(ns);
|
||||
|
||||
|
Reference in New Issue
Block a user