data: elaborated type name usage fix

* fixed node name hierarchy creation for elaborated type names (like when using the class namespaceA::B)
This commit is contained in:
malte_langkabel
2015-01-19 17:22:27 +01:00
parent 6fc61a7e22
commit 4775a87104
2 changed files with 6 additions and 6 deletions
+6
View File
@@ -63,6 +63,12 @@ namespace utility
{
const clang::Type* type = qualType.getUnqualifiedType().getTypePtr();
if (clang::isa<clang::ElaboratedType>(type)) // get the real type here
{
const clang::ElaboratedType* et = clang::dyn_cast<clang::ElaboratedType>(type);
type = et->getNamedType().getUnqualifiedType().getTypePtr();
}
if (clang::isa<clang::TagType>(type))
{
typeNameHerarchy = getDeclNameHierarchy(clang::dyn_cast<clang::TagType>(type)->getDecl());