forked from qt-creator/qt-creator
		
	Improved ObjC parsing, and added semantic checks.
This commit is contained in:
		| @@ -154,6 +154,14 @@ void CheckUndefinedSymbols::buildTypeMap(NamespaceBinding *binding, QSet<Namespa | ||||
|                 } else if (Declaration *decl = member->asDeclaration()) { | ||||
|                     if (decl->isTypedef()) | ||||
|                         addType(decl->name()); | ||||
|                 } else if (ObjCForwardClassDeclaration *fKlass = member->asObjCForwardClassDeclaration()) { | ||||
|                     addType(fKlass->name()); | ||||
|                 } else if (ObjCClass *klass = member->asObjCClass()) { | ||||
|                     addType(klass->name()); | ||||
|                 } else if (ObjCForwardProtocolDeclaration *fProto = member->asObjCForwardProtocolDeclaration()) { | ||||
|                     addType(fProto->name()); | ||||
|                 } else if (ObjCProtocol *proto = member->asObjCProtocol()) { | ||||
|                     addType(proto->name()); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -98,6 +98,10 @@ QIcon Icons::iconForSymbol(const Symbol *symbol) const | ||||
|         return _enumIcon; | ||||
|     } else if (symbol->isClass() || symbol->isForwardClassDeclaration()) { | ||||
|         return _classIcon; | ||||
|     } else if (symbol->isObjCClass() || symbol->isObjCForwardClassDeclaration()) { | ||||
|         return _classIcon; | ||||
|     } else if (symbol->isObjCProtocol() || symbol->isObjCForwardProtocolDeclaration()) { | ||||
|         return _classIcon; | ||||
|     } else if (symbol->isNamespace()) { | ||||
|         return _namespaceIcon; | ||||
|     } else if (symbol->isUsingNamespaceDirective() || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user