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
208f26c9
Commit
208f26c9
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Annotate function declarators.
parent
93698188
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/AST.h
View file @
208f26c9
...
...
@@ -711,6 +711,9 @@ public:
SpecifierAST
*
cv_qualifier_seq
;
ExceptionSpecificationAST
*
exception_specification
;
public:
// annotations
Function
*
symbol
;
public:
virtual
unsigned
firstToken
()
const
;
virtual
unsigned
lastToken
()
const
;
...
...
src/shared/cplusplus/CheckDeclarator.cpp
View file @
208f26c9
...
...
@@ -158,6 +158,7 @@ bool CheckDeclarator::visit(NestedDeclaratorAST *ast)
bool
CheckDeclarator
::
visit
(
FunctionDeclaratorAST
*
ast
)
{
Function
*
fun
=
control
()
->
newFunction
(
ast
->
firstToken
());
ast
->
symbol
=
fun
;
fun
->
setReturnType
(
_fullySpecifiedType
);
if
(
ast
->
parameters
)
{
...
...
Write
Preview
Markdown
is supported
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