Initial work on the pattern matcher for AST nodes.

This commit is contained in:
Roberto Raggi
2009-11-12 17:35:48 +01:00
parent b2f6803329
commit 5dcf449afd
10 changed files with 2846 additions and 66 deletions

View File

@@ -522,11 +522,13 @@ bool CheckUndefinedSymbols::visit(ObjCProtocolRefsAST *ast)
bool CheckUndefinedSymbols::visit(ObjCPropertyDeclarationAST *ast)
{
for (List<ObjCPropertyDeclaration *> *iter = ast->symbols; iter; iter = iter->next) {
if (Name *getterName = iter->value->getterName())
; // FIXME: resolve the symbol for the name, and check its signature.
if (Name *getterName = iter->value->getterName()) {
// FIXME: resolve the symbol for the name, and check its signature.
}
if (Name *setterName = iter->value->setterName())
; // FIXME: resolve the symbol for the name, and check its signature.
if (Name *setterName = iter->value->setterName()) {
// FIXME: resolve the symbol for the name, and check its signature.
}
}
return false;