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
75229edc
Commit
75229edc
authored
Feb 11, 2010
by
Roberto Raggi
Browse files
Process the formal arguments of inline methods when searching the usages of a symbol.
parent
61622796
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/FindUsages.cpp
View file @
75229edc
...
...
@@ -69,6 +69,7 @@ void FindUsages::operator()(Symbol *symbol)
_references
.
clear
();
_usages
.
clear
();
_declSymbol
=
symbol
;
_inSimpleDeclaration
=
0
;
_id
=
0
;
if
(
_declSymbol
&&
0
!=
(
_id
=
_declSymbol
->
identifier
()))
...
...
@@ -450,15 +451,18 @@ bool FindUsages::visit(FunctionDeclaratorAST *ast)
return
false
;
}
bool
FindUsages
::
visit
(
SimpleDeclarationAST
*
)
bool
FindUsages
::
visit
(
SimpleDeclarationAST
*
ast
)
{
for
(
SpecifierListAST
*
it
=
ast
->
decl_specifier_list
;
it
;
it
=
it
->
next
)
accept
(
it
->
value
);
++
_inSimpleDeclaration
;
return
true
;
for
(
DeclaratorListAST
*
it
=
ast
->
declarator_list
;
it
;
it
=
it
->
next
)
accept
(
it
->
value
);
--
_inSimpleDeclaration
;
return
false
;
}
void
FindUsages
::
endVisit
(
SimpleDeclarationAST
*
)
{
--
_inSimpleDeclaration
;
}
bool
FindUsages
::
visit
(
ObjCSelectorWithoutArgumentsAST
*
ast
)
{
const
Identifier
*
id
=
identifier
(
ast
->
name_token
);
...
...
src/libs/cplusplus/FindUsages.h
View file @
75229edc
...
...
@@ -99,7 +99,6 @@ protected:
virtual
bool
visit
(
ExpressionOrDeclarationStatementAST
*
ast
);
virtual
bool
visit
(
FunctionDeclaratorAST
*
ast
);
virtual
bool
visit
(
SimpleDeclarationAST
*
);
virtual
void
endVisit
(
SimpleDeclarationAST
*
);
virtual
bool
visit
(
ObjCSelectorWithoutArgumentsAST
*
ast
);
virtual
bool
visit
(
ObjCSelectorWithArgumentsAST
*
ast
);
...
...
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