Commit fe4fc6d5 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Handle toplevel objc++ declarations.

parent b2ff6314
......@@ -395,6 +395,28 @@ bool Parser::parseDeclaration(DeclarationAST *&node)
case T_EXPORT:
return parseTemplateDeclaration(node);
// objc++
case T_AT_CLASS:
return parseObjCClassDeclaration(node);
case T_AT_INTERFACE:
return parseObjCInterfaceDeclaration(node);
case T_AT_PROTOCOL:
return parseObjCProtocolDeclaration(node);
case T_AT_END:
return parseObjCEndDeclaration(node);
case T_AT_COMPATIBILITY_ALIAS:
return parseObjCAliasDeclaration(node);
case T_AT_SYNTHESIZE:
return parseObjCPropertySynthesize(node);
case T_AT_DYNAMIC:
return parseObjCPropertyDynamic(node);
default:
if (LA() == T_EXTERN && LA(2) == T_TEMPLATE)
return parseTemplateDeclaration(node);
......@@ -3261,4 +3283,39 @@ bool Parser::parseThrowExpression(ExpressionAST *&node)
return false;
}
bool Parser::parseObjCClassDeclaration(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCInterfaceDeclaration(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCProtocolDeclaration(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCEndDeclaration(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCAliasDeclaration(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCPropertySynthesize(DeclarationAST *&node)
{
return false;
}
bool Parser::parseObjCPropertyDynamic(DeclarationAST *&node)
{
return false;
}
CPLUSPLUS_END_NAMESPACE
......@@ -203,6 +203,15 @@ public:
bool parseUsingDirective(DeclarationAST *&node);
bool parseWhileStatement(StatementAST *&node);
// ObjC++
bool parseObjCClassDeclaration(DeclarationAST *&node);
bool parseObjCInterfaceDeclaration(DeclarationAST *&node);
bool parseObjCProtocolDeclaration(DeclarationAST *&node);
bool parseObjCEndDeclaration(DeclarationAST *&node);
bool parseObjCAliasDeclaration(DeclarationAST *&node);
bool parseObjCPropertySynthesize(DeclarationAST *&node);
bool parseObjCPropertyDynamic(DeclarationAST *&node);
// Qt MOC run
bool parseQtMethod(ExpressionAST *&node);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment