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
e7677cdb
Commit
e7677cdb
authored
Nov 27, 2010
by
Roberto Raggi
Browse files
Oops, NamedTypeAST should produce a Type and not an ExprResult.
parent
16c91946
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/glsl/glslsemantic.cpp
View file @
e7677cdb
...
...
@@ -575,8 +575,7 @@ bool Semantic::visit(NamedTypeAST *ast)
if
(
ast
->
name
)
{
if
(
Symbol
*
s
=
_scope
->
lookup
(
*
ast
->
name
))
{
if
(
Struct
*
ty
=
s
->
asStruct
())
{
_expr
.
type
=
ty
;
_expr
.
isConstant
=
false
;
_type
=
ty
;
return
false
;
}
}
...
...
@@ -613,7 +612,7 @@ bool Semantic::visit(StructTypeAST *ast)
bool
Semantic
::
visit
(
QualifiedTypeAST
*
ast
)
{
accept
(
ast
->
type
);
_type
=
type
(
ast
->
type
);
for
(
List
<
LayoutQualifier
*>
*
it
=
ast
->
layout_list
;
it
;
it
=
it
->
next
)
{
LayoutQualifier
*
q
=
it
->
value
;
// q->name;
...
...
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