Changes in / [5aa4656:3fc0f2a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Type.hpp
r5aa4656 r3fc0f2a 37 37 public: 38 38 CV::Qualifiers qualifiers; 39 40 Type( CV::Qualifiers q = {} ) : qualifiers(q) {} 39 std::vector<ptr<Attribute>> attributes; 40 41 Type( CV::Qualifiers q = {}, std::vector<ptr<Attribute>> && as = {} ) 42 : qualifiers(q), attributes(std::move(as)) {} 41 43 42 44 bool is_const() const { return qualifiers.is_const; } … … 268 270 ForallList forall; 269 271 270 ParameterizedType( ForallList&& fs = {}, CV::Qualifiers q = {} ) 271 : Type(q), forall(std::move(fs)) {} 272 ParameterizedType( CV::Qualifiers q ) : Type(q), forall() {} 272 ParameterizedType( ForallList&& fs = {}, CV::Qualifiers q = {}, 273 std::vector<ptr<Attribute>> && as = {} ) 274 : Type(q, std::move(as)), forall(std::move(fs)) {} 275 276 ParameterizedType( CV::Qualifiers q, std::vector<ptr<Attribute>> && as = {} ) 277 : Type(q, std::move(as)), forall() {} 273 278 274 279 private: … … 311 316 public: 312 317 std::vector<ptr<Expr>> params; 313 std::vector<ptr<Attribute>> attributes;314 318 std::string name; 315 319 bool hoistType = false; … … 317 321 ReferenceToType( const std::string& n, CV::Qualifiers q = {}, 318 322 std::vector<ptr<Attribute>> && as = {} ) 319 : ParameterizedType(q ), params(), attributes(std::move(as)), name(n) {}323 : ParameterizedType(q, std::move(as)), params(), name(n) {} 320 324 321 325 /// Gets aggregate declaration this type refers to
Note: See TracChangeset
for help on using the changeset viewer.