Actually print the enclosing DeclContexts.

This commit is contained in:
Axel Naumann 2014-09-23 14:47:18 +02:00 committed by sftnight
parent f0f6835a22
commit 2facc626bf

View File

@ -125,11 +125,15 @@ namespace cling {
skipCurrentDecl(true);
m_Visited[getCanonicalOrNamespace(D)] = false;
} else {
StreamRAII Stream(*this);
std::string closeBraces = PrintEnclosingDeclContexts(D->getDeclContext());
clang::DeclVisitor<ForwardDeclPrinter>::Visit(D);
if (m_SkipFlag) {
// D was not good, flag it.
skipCurrentDecl(true);
m_Visited[getCanonicalOrNamespace(D)] = false;
} else {
Out() << closeBraces;
}
}
}