Lines Matching defs:SubClass
147 /// AddSubClass - Add SubClass as a subclass to CurRec, resolving its template
148 /// args as SubClass's template arguments.
149 bool TGParser::AddSubClass(Record *CurRec, SubClassReference &SubClass) {
150 Record *SC = SubClass.Rec;
154 if (AddValue(CurRec, SubClass.RefLoc, Vals[i]))
160 if (TArgs.size() < SubClass.TemplateArgs.size())
161 return Error(SubClass.RefLoc, "More template args specified than expected");
166 if (i < SubClass.TemplateArgs.size()) {
168 if (SetValue(CurRec, SubClass.RefLoc, TArgs[i], std::vector<unsigned>(),
169 SubClass.TemplateArgs[i]))
179 return Error(SubClass.RefLoc,"Value not specified for template argument #"
190 return Error(SubClass.RefLoc,
196 return Error(SubClass.RefLoc,
1896 SubClassReference SubClass = ParseSubClassReference(CurRec, false);
1899 if (SubClass.Rec == 0) return true;
1902 if (AddSubClass(CurRec, SubClass))
1907 SubClass = ParseSubClassReference(CurRec, false);
2484 SubClassReference SubClass = ParseSubClassReference(0, false);
2487 if (SubClass.Rec == 0) return true;
2495 if (AddSubClass(CurRec, SubClass))
2508 SubClass = ParseSubClassReference(0, false);