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
38d642c0
Commit
38d642c0
authored
Nov 30, 2010
by
Roberto Raggi
Browse files
Process constructors.
parent
59362664
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/glsl/glslsemantic.cpp
View file @
38d642c0
...
...
@@ -259,7 +259,7 @@ bool Semantic::visit(BinaryExpressionAST *ast)
bool
Semantic
::
visit
(
UnaryExpressionAST
*
ast
)
{
ExprResult
expr
=
expression
(
ast
->
expr
);
_expr
.
isConstant
=
expr
.
isConstant
;
_expr
=
expr
;
return
false
;
}
...
...
@@ -345,6 +345,10 @@ bool Semantic::visit(FunctionCallExpressionAST *ast)
_expr
.
type
=
candidates
.
first
()
->
returnType
();
else
_expr
.
type
=
overloads
->
functions
().
first
()
->
returnType
();
}
else
{
// called as constructor, e.g. vec2(a, b)
_expr
.
type
=
id
.
type
;
}
}
...
...
@@ -693,6 +697,7 @@ bool Semantic::visit(ArrayTypeAST *ast)
const
Type
*
elementType
=
type
(
ast
->
elementType
);
Q_UNUSED
(
elementType
);
ExprResult
size
=
expression
(
ast
->
size
);
// ### array type
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