forked from qt-creator/qt-creator
Fix semantic of C++ 11 inline namespaces.
Add the declaring `inline' namespace to the `using list' of its enclosing namespace symbol. This should be enough to ensure the correct visibility of the symbols declarated in the inlined namespace. Change-Id: Id4de74577c498fe439a49709a306ef0deb145988 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -817,7 +817,11 @@ bool CreateBindings::visit(Namespace *ns)
|
||||
for (unsigned i = 0; i < ns->memberCount(); ++i)
|
||||
process(ns->memberAt(i));
|
||||
|
||||
if (ns->isInline() && previous)
|
||||
previous->addUsing(_currentClassOrNamespace);
|
||||
|
||||
_currentClassOrNamespace = previous;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user