Complain for typedefs inside functions.

git-svn-id: http://root.cern.ch/svn/root/trunk@47204 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Axel Naumann 2012-11-12 17:49:48 +00:00
parent d94e4aae9c
commit 169edbd5a0

View File

@ -410,6 +410,7 @@ namespace utils {
prefix = CreateNestedNameSpecifier(Ctx,
llvm::dyn_cast<NamespaceDecl>(outer));
} else {
assert(llvm::isa<TagDecl>(outer)&& "not in namespace of TagDecl");
prefix = CreateNestedNameSpecifier(Ctx,
llvm::dyn_cast<TagDecl>(outer));
}