Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
cbf24ab6
Commit
cbf24ab6
authored
Oct 05, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't look at formal arguments.
parent
13212eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
src/plugins/cpptools/cppfindreferences.cpp
src/plugins/cpptools/cppfindreferences.cpp
+28
-0
No files found.
src/plugins/cpptools/cppfindreferences.cpp
View file @
cbf24ab6
...
...
@@ -364,6 +364,34 @@ protected:
return
false
;
}
virtual
bool
visit
(
ParameterDeclarationAST
*
ast
)
{
for
(
SpecifierAST
*
spec
=
ast
->
type_specifier
;
spec
;
spec
=
spec
->
next
)
accept
(
spec
);
if
(
DeclaratorAST
*
declarator
=
ast
->
declarator
)
{
for
(
SpecifierAST
*
attr
=
declarator
->
attributes
;
attr
;
attr
=
attr
->
next
)
accept
(
attr
);
for
(
PtrOperatorAST
*
ptr_op
=
declarator
->
ptr_operators
;
ptr_op
;
ptr_op
=
ptr_op
->
next
)
accept
(
ptr_op
);
// ### TODO: well, not exactly. We need to look at qualified-name-ids and nested-declarators.
// accept(declarator->core_declarator);
for
(
PostfixDeclaratorAST
*
fx_op
=
declarator
->
postfix_declarators
;
fx_op
;
fx_op
=
fx_op
->
next
)
accept
(
fx_op
);
for
(
SpecifierAST
*
spec
=
declarator
->
post_attributes
;
spec
;
spec
=
spec
->
next
)
accept
(
spec
);
accept
(
declarator
->
initializer
);
}
accept
(
ast
->
expression
);
return
false
;
}
private:
QFutureInterface
<
Utils
::
FileSearchResult
>
*
_future
;
Identifier
*
_id
;
// ### remove me
...
...
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