Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
fe4fc6d5
Commit
fe4fc6d5
authored
Jan 08, 2009
by
Roberto Raggi
Browse files
Handle toplevel objc++ declarations.
parent
b2ff6314
Changes
2
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/Parser.cpp
View file @
fe4fc6d5
...
...
@@ -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
shared/cplusplus/Parser.h
View file @
fe4fc6d5
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment