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
f3746289
Commit
f3746289
authored
Aug 11, 2010
by
Roberto Raggi
Browse files
Push the template-prototype scope.
parent
be1cde6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/FindUsages.cpp
View file @
f3746289
...
@@ -1610,11 +1610,16 @@ bool FindUsages::visit(TemplateDeclarationAST *ast)
...
@@ -1610,11 +1610,16 @@ bool FindUsages::visit(TemplateDeclarationAST *ast)
// unsigned export_token = ast->export_token;
// unsigned export_token = ast->export_token;
// unsigned template_token = ast->template_token;
// unsigned template_token = ast->template_token;
// unsigned less_token = ast->less_token;
// unsigned less_token = ast->less_token;
Scope
*
previousScope
=
switchScope
(
ast
->
symbol
);
for
(
DeclarationListAST
*
it
=
ast
->
template_parameter_list
;
it
;
it
=
it
->
next
)
{
for
(
DeclarationListAST
*
it
=
ast
->
template_parameter_list
;
it
;
it
=
it
->
next
)
{
this
->
declaration
(
it
->
value
);
this
->
declaration
(
it
->
value
);
}
}
// unsigned greater_token = ast->greater_token;
// unsigned greater_token = ast->greater_token;
this
->
declaration
(
ast
->
declaration
);
this
->
declaration
(
ast
->
declaration
);
(
void
)
switchScope
(
previousScope
);
return
false
;
return
false
;
}
}
...
...
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