logic: recording node type of a cxx namespace in a using directive

* also fixed tests to be executed in the same order on every platform
This commit is contained in:
malte_langkabel
2017-02-13 10:29:27 +01:00
parent 0ceff0203c
commit d5e2bbb17c
2 changed files with 6 additions and 2 deletions
@@ -373,10 +373,14 @@ void CxxAstVisitorComponentIndexer::visitUsingDirectiveDecl(clang::UsingDirectiv
{
if (shouldVisitDecl(d))
{
const NameHierarchy nameHierarchy = getAstVisitor()->getDeclNameCache()->getValue(d->getNominatedNamespaceAsWritten());
m_client->recordSymbol(nameHierarchy, SYMBOL_NAMESPACE, ACCESS_NONE, DEFINITION_NONE);
ParseLocation loc = getParseLocation(d->getLocation());
m_client->recordReference(
REFERENCE_USAGE,
getAstVisitor()->getDeclNameCache()->getValue(d->getNominatedNamespaceAsWritten()),
nameHierarchy,
getAstVisitor()->getComponent<CxxAstVisitorComponentContext>()->getContextName(NameHierarchy(loc.filePath.fileName())),
loc
);