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
d586e139
Commit
d586e139
authored
Jul 15, 2010
by
Roberto Raggi
Browse files
Search for the local usages after processing the function body.
parent
5c741218
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppchecksymbols.cpp
View file @
d586e139
...
...
@@ -528,6 +528,12 @@ void CheckSymbols::endVisit(TemplateDeclarationAST *)
bool
CheckSymbols
::
visit
(
FunctionDefinitionAST
*
ast
)
{
_functionDefinitionStack
.
append
(
ast
);
accept
(
ast
->
decl_specifier_list
);
accept
(
ast
->
declarator
);
accept
(
ast
->
ctor_initializer
);
accept
(
ast
->
function_body
);
const
LocalSymbols
locals
(
_doc
,
ast
);
QList
<
SemanticInfo
::
Use
>
uses
;
foreach
(
uses
,
locals
.
uses
)
{
...
...
@@ -535,11 +541,6 @@ bool CheckSymbols::visit(FunctionDefinitionAST *ast)
addTypeUsage
(
u
);
}
accept
(
ast
->
decl_specifier_list
);
accept
(
ast
->
declarator
);
accept
(
ast
->
ctor_initializer
);
accept
(
ast
->
function_body
);
_functionDefinitionStack
.
removeLast
();
return
false
;
}
...
...
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