Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0f337211
Commit
0f337211
authored
Jan 06, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TemplateTypeParameterAST::lastToken().
parent
43db13a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
shared/cplusplus/AST.cpp
shared/cplusplus/AST.cpp
+12
-2
No files found.
shared/cplusplus/AST.cpp
View file @
0f337211
...
...
@@ -2464,7 +2464,6 @@ unsigned TemplateTypeParameterAST::firstToken() const
unsigned
TemplateTypeParameterAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
if
(
type_id
)
return
type_id
->
lastToken
();
else
if
(
equal_token
)
...
...
@@ -2473,7 +2472,18 @@ unsigned TemplateTypeParameterAST::lastToken() const
return
name
->
lastToken
();
else
if
(
class_token
)
return
class_token
+
1
;
return
greater_token
+
1
;
else
if
(
greater_token
)
return
greater_token
+
1
;
for
(
DeclarationAST
*
it
=
template_parameters
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
}
if
(
less_token
)
return
less_token
+
1
;
return
template_token
+
1
;
}
void
ThisExpressionAST
::
accept0
(
ASTVisitor
*
visitor
)
...
...
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