glsl: Use 'using' to be explicit about visitor overloads
From Kristian Hoegsberg e3dfa8f4d694e7d64a6401752af1f973b0852aab in mainline Mesa reduces clang warnings
This commit is contained in:
parent
37d3b3aad0
commit
8e97b20b15
@ -260,6 +260,8 @@ public:
|
|||||||
|
|
||||||
class array_resize_visitor : public deref_type_updater {
|
class array_resize_visitor : public deref_type_updater {
|
||||||
public:
|
public:
|
||||||
|
using deref_type_updater::visit;
|
||||||
|
|
||||||
unsigned num_vertices;
|
unsigned num_vertices;
|
||||||
gl_shader_program *prog;
|
gl_shader_program *prog;
|
||||||
gl_shader_stage stage;
|
gl_shader_stage stage;
|
||||||
@ -1506,6 +1508,8 @@ move_non_declarations(exec_list *instructions, exec_node *last,
|
|||||||
*/
|
*/
|
||||||
class array_sizing_visitor : public deref_type_updater {
|
class array_sizing_visitor : public deref_type_updater {
|
||||||
public:
|
public:
|
||||||
|
using deref_type_updater::visit;
|
||||||
|
|
||||||
array_sizing_visitor()
|
array_sizing_visitor()
|
||||||
: mem_ctx(ralloc_context(NULL)),
|
: mem_ctx(ralloc_context(NULL)),
|
||||||
unnamed_interfaces(_mesa_pointer_hash_table_create(NULL))
|
unnamed_interfaces(_mesa_pointer_hash_table_create(NULL))
|
||||||
|
@ -268,6 +268,8 @@ struct ir_lower_jumps_visitor : public ir_control_flow_visitor {
|
|||||||
* contains the jump.
|
* contains the jump.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
using ir_control_flow_visitor::visit;
|
||||||
|
|
||||||
bool progress;
|
bool progress;
|
||||||
|
|
||||||
struct function_record function;
|
struct function_record function;
|
||||||
|
@ -49,6 +49,9 @@ struct assignment_entry {
|
|||||||
|
|
||||||
class ir_constant_variable_visitor : public ir_hierarchical_visitor {
|
class ir_constant_variable_visitor : public ir_hierarchical_visitor {
|
||||||
public:
|
public:
|
||||||
|
using ir_hierarchical_visitor::visit;
|
||||||
|
using ir_hierarchical_visitor::visit_enter;
|
||||||
|
|
||||||
virtual ir_visitor_status visit_enter(ir_dereference_variable *);
|
virtual ir_visitor_status visit_enter(ir_dereference_variable *);
|
||||||
virtual ir_visitor_status visit(ir_variable *);
|
virtual ir_visitor_status visit(ir_variable *);
|
||||||
virtual ir_visitor_status visit_enter(ir_assignment *);
|
virtual ir_visitor_status visit_enter(ir_assignment *);
|
||||||
|
@ -66,6 +66,8 @@ public:
|
|||||||
|
|
||||||
class kill_for_derefs_visitor : public ir_hierarchical_visitor {
|
class kill_for_derefs_visitor : public ir_hierarchical_visitor {
|
||||||
public:
|
public:
|
||||||
|
using ir_hierarchical_visitor::visit;
|
||||||
|
|
||||||
kill_for_derefs_visitor(exec_list *assignments)
|
kill_for_derefs_visitor(exec_list *assignments)
|
||||||
{
|
{
|
||||||
this->assignments = assignments;
|
this->assignments = assignments;
|
||||||
|
Loading…
Reference in New Issue
Block a user