class ast_fully_specified_type : public ast_node {
public:
virtual void print(void) const;
+ bool has_qualifiers() const;
ast_type_qualifier qualifier;
ast_type_specifier *specifier;
type_name = names[specifier];
}
+
+bool
+ast_fully_specified_type::has_qualifiers() const
+{
+ return qualifier.invariant || qualifier.constant || qualifier.attribute
+ || qualifier.varying || qualifier.in
+ || qualifier.out || qualifier.centroid
+ || qualifier.uniform || qualifier.smooth
+ || qualifier.flat || qualifier.noperspective;
+}