Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
fa5b8508
Commit
fa5b8508
authored
Feb 03, 2009
by
Roberto Raggi
Browse files
Dummy method for the objc expressions.
parent
da6667d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
fa5b8508
...
...
@@ -2556,6 +2556,12 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node)
case
T_SLOT
:
return
parseQtMethod
(
node
);
case
T_AT_STRING_LITERAL
:
case
T_AT_ENCODE
:
case
T_AT_PROTOCOL
:
case
T_AT_SELECTOR
:
return
parseObjCExpression
(
node
);
default:
{
NameAST
*
name
=
0
;
if
(
parseNameId
(
name
))
{
...
...
@@ -2570,6 +2576,30 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node)
return
false
;
}
bool
Parser
::
parseObjCExpression
(
ExpressionAST
*&
node
)
{
switch
(
LA
())
{
case
T_AT_ENCODE
:
break
;
case
T_AT_PROTOCOL
:
break
;
case
T_AT_SELECTOR
:
break
;
case
T_LBRACKET
:
break
;
case
T_AT_STRING_LITERAL
:
break
;
default:
break
;
}
// switch
return
false
;
}
bool
Parser
::
parseNameId
(
NameAST
*&
name
)
{
unsigned
start
=
cursor
();
...
...
src/shared/cplusplus/Parser.h
View file @
fa5b8508
...
...
@@ -211,6 +211,7 @@ public:
bool
parseQtMethod
(
ExpressionAST
*&
node
);
// ObjC++
bool
parseObjCExpression
(
ExpressionAST
*&
node
);
bool
parseObjCClassDeclaration
(
DeclarationAST
*&
node
);
bool
parseObjCInterface
(
DeclarationAST
*&
node
,
SpecifierAST
*
attributes
=
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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