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
fef2ad6b
Commit
fef2ad6b
authored
Dec 08, 2009
by
Roberto Raggi
Browse files
Create TypenameArgument symbols.
parent
f7164ae9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/AST.h
View file @
fef2ad6b
...
...
@@ -2083,7 +2083,7 @@ public:
ExpressionAST
*
type_id
;
public:
// annotations
Argument
*
symbol
;
Typename
Argument
*
symbol
;
public:
virtual
TypenameTypeParameterAST
*
asTypenameTypeParameter
()
{
return
this
;
}
...
...
@@ -2109,7 +2109,7 @@ public:
ExpressionAST
*
type_id
;
public:
Argument
*
symbol
;
Typename
Argument
*
symbol
;
public:
virtual
TemplateTypeParameterAST
*
asTemplateTypeParameter
()
{
return
this
;
}
...
...
src/shared/cplusplus/CheckDeclaration.cpp
View file @
fef2ad6b
...
...
@@ -459,7 +459,9 @@ bool CheckDeclaration::visit(TypenameTypeParameterAST *ast)
sourceLocation
=
ast
->
name
->
firstToken
();
const
Name
*
name
=
semantic
()
->
check
(
ast
->
name
,
_scope
);
Argument
*
arg
=
control
()
->
newArgument
(
sourceLocation
,
name
);
// ### new template type
TypenameArgument
*
arg
=
control
()
->
newTypenameArgument
(
sourceLocation
,
name
);
FullySpecifiedType
ty
=
semantic
()
->
check
(
ast
->
type_id
,
_scope
);
arg
->
setType
(
ty
);
ast
->
symbol
=
arg
;
_scope
->
enterSymbol
(
arg
);
return
false
;
...
...
@@ -472,7 +474,9 @@ bool CheckDeclaration::visit(TemplateTypeParameterAST *ast)
sourceLocation
=
ast
->
name
->
firstToken
();
const
Name
*
name
=
semantic
()
->
check
(
ast
->
name
,
_scope
);
Argument
*
arg
=
control
()
->
newArgument
(
sourceLocation
,
name
);
// ### new template type
TypenameArgument
*
arg
=
control
()
->
newTypenameArgument
(
sourceLocation
,
name
);
FullySpecifiedType
ty
=
semantic
()
->
check
(
ast
->
type_id
,
_scope
);
arg
->
setType
(
ty
);
ast
->
symbol
=
arg
;
_scope
->
enterSymbol
(
arg
);
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