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
7b51b119
Commit
7b51b119
authored
Aug 27, 2010
by
Roberto Raggi
Browse files
Set the end of the template's scope.
parent
afdd933f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Bind.cpp
View file @
7b51b119
...
...
@@ -2063,7 +2063,7 @@ bool Bind::visit(TemplateDeclarationAST *ast)
{
Template
*
templ
=
control
()
->
newTemplate
(
ast
->
firstToken
(),
0
);
templ
->
setStartOffset
(
tokenAt
(
ast
->
firstToken
()).
begin
());
templ
->
set
Start
Offset
(
tokenAt
(
ast
->
lastToken
()
-
1
).
end
());
templ
->
set
End
Offset
(
tokenAt
(
ast
->
lastToken
()
-
1
).
end
());
ast
->
symbol
=
templ
;
Scope
*
previousScope
=
switchScope
(
templ
);
...
...
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