Actually print the enclosing DeclContexts.
This commit is contained in:
parent
f0f6835a22
commit
2facc626bf
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user