From f55d5500c5f46471861537dbcea09d737d4b064b Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 4 Jun 2009 11:32:01 +0200 Subject: Warn for undefined types (not finished yet). --- src/shared/cplusplus/CheckName.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/cplusplus/CheckName.cpp') diff --git a/src/shared/cplusplus/CheckName.cpp b/src/shared/cplusplus/CheckName.cpp index 28040a87dc..832daf9ed4 100644 --- a/src/shared/cplusplus/CheckName.cpp +++ b/src/shared/cplusplus/CheckName.cpp @@ -73,6 +73,10 @@ Name *CheckName::check(NameAST *name, Scope *scope) Name *previousName = switchName(0); Scope *previousScope = switchScope(scope); accept(name); + + if (_name && name) + name->name = _name; + (void) switchScope(previousScope); return switchName(previousName); } -- cgit v1.2.1