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
Tobias Hunger
qt-creator
Commits
fde8ca4a
Commit
fde8ca4a
authored
Mar 30, 2009
by
Roberto Raggi
Browse files
Added Document::ParseDeclarator.
parent
2a82d927
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CppDocument.cpp
View file @
fde8ca4a
...
...
@@ -288,6 +288,10 @@ bool Document::parse(ParseMode mode)
m
=
TranslationUnit
::
ParseExpression
;
break
;
case
ParseDeclarator
:
m
=
TranslationUnit
::
ParseDeclarator
;
break
;
case
ParseStatement
:
m
=
TranslationUnit
::
ParseStatement
;
break
;
...
...
src/libs/cplusplus/CppDocument.h
View file @
fde8ca4a
...
...
@@ -92,6 +92,7 @@ public:
ParseTranlationUnit
,
ParseDeclaration
,
ParseExpression
,
ParseDeclarator
,
ParseStatement
};
...
...
src/shared/cplusplus/TranslationUnit.cpp
View file @
fde8ca4a
...
...
@@ -278,6 +278,12 @@ bool TranslationUnit::parse(ParseMode mode)
_ast
=
node
;
}
break
;
case
ParseDeclarator
:
{
DeclaratorAST
*
node
=
0
;
parsed
=
parser
.
parseDeclarator
(
node
);
_ast
=
node
;
}
break
;
case
ParseStatement
:
{
StatementAST
*
node
=
0
;
parsed
=
parser
.
parseStatement
(
node
);
...
...
src/shared/cplusplus/TranslationUnit.h
View file @
fde8ca4a
...
...
@@ -118,6 +118,7 @@ public:
ParseTranlationUnit
,
ParseDeclaration
,
ParseExpression
,
ParseDeclarator
,
ParseStatement
};
...
...
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