Home | History | Annotate | Download | only in Serialization

Lines Matching refs:TL

4156 void TypeLocReader::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
4159 void TypeLocReader::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) {
4160 TL.setBuiltinLoc(ReadSourceLocation(Record, Idx));
4161 if (TL.needsExtraLocalData()) {
4162 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Record[Idx++]));
4163 TL.setWrittenSignSpec(static_cast<DeclSpec::TSS>(Record[Idx++]));
4164 TL.setWrittenWidthSpec(static_cast<DeclSpec::TSW>(Record[Idx++]));
4165 TL.setModeAttr(Record[Idx++]);
4168 void TypeLocReader::VisitComplexTypeLoc(ComplexTypeLoc TL) {
4169 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4171 void TypeLocReader::VisitPointerTypeLoc(PointerTypeLoc TL) {
4172 TL.setStarLoc(ReadSourceLocation(Record, Idx));
4174 void TypeLocReader::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
4175 TL.setCaretLoc(ReadSourceLocation(Record, Idx));
4177 void TypeLocReader::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) {
4178 TL.setAmpLoc(ReadSourceLocation(Record, Idx));
4180 void TypeLocReader::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) {
4181 TL.setAmpAmpLoc(ReadSourceLocation(Record, Idx));
4183 void TypeLocReader::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) {
4184 TL.setStarLoc(ReadSourceLocation(Record, Idx));
4185 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
4187 void TypeLocReader::VisitArrayTypeLoc(ArrayTypeLoc TL) {
4188 TL.setLBracketLoc(ReadSourceLocation(Record, Idx));
4189 TL.setRBracketLoc(ReadSourceLocation(Record, Idx));
4191 TL.setSizeExpr(Reader.ReadExpr(F));
4193 TL.setSizeExpr(0);
4195 void TypeLocReader::VisitConstantArrayTypeLoc(ConstantArrayTypeLoc TL) {
4196 VisitArrayTypeLoc(TL);
4198 void TypeLocReader::VisitIncompleteArrayTypeLoc(IncompleteArrayTypeLoc TL) {
4199 VisitArrayTypeLoc(TL);
4201 void TypeLocReader::VisitVariableArrayTypeLoc(VariableArrayTypeLoc TL) {
4202 VisitArrayTypeLoc(TL);
4205 DependentSizedArrayTypeLoc TL) {
4206 VisitArrayTypeLoc(TL);
4209 DependentSizedExtVectorTypeLoc TL) {
4210 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4212 void TypeLocReader::VisitVectorTypeLoc(VectorTypeLoc TL) {
4213 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4215 void TypeLocReader::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
4216 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4218 void TypeLocReader::VisitFunctionTypeLoc(FunctionTypeLoc TL) {
4219 TL.setLocalRangeBegin(ReadSourceLocation(Record, Idx));
4220 TL.setLocalRangeEnd(ReadSourceLocation(Record, Idx));
4221 TL.setTrailingReturn(Record[Idx++]);
4222 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i) {
4223 TL.setArg(i, ReadDeclAs<ParmVarDecl>(Record, Idx));
4226 void TypeLocReader::VisitFunctionProtoTypeLoc(FunctionProtoTypeLoc TL) {
4227 VisitFunctionTypeLoc(TL);
4229 void TypeLocReader::VisitFunctionNoProtoTypeLoc(FunctionNoProtoTypeLoc TL) {
4230 VisitFunctionTypeLoc(TL);
4232 void TypeLocReader::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) {
4233 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4235 void TypeLocReader::VisitTypedefTypeLoc(TypedefTypeLoc TL) {
4236 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4238 void TypeLocReader::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) {
4239 TL.setTypeofLoc(ReadSourceLocation(Record, Idx));
4240 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
4241 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
4243 void TypeLocReader::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) {
4244 TL.setTypeofLoc(ReadSourceLocation(Record, Idx));
4245 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
4246 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
4247 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
4249 void TypeLocReader::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) {
4250 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4252 void TypeLocReader::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) {
4253 TL.setKWLoc(ReadSourceLocation(Record, Idx));
4254 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
4255 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
4256 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
4258 void TypeLocReader::VisitAutoTypeLoc(AutoTypeLoc TL) {
4259 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4261 void TypeLocReader::VisitRecordTypeLoc(RecordTypeLoc TL) {
4262 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4264 void TypeLocReader::VisitEnumTypeLoc(EnumTypeLoc TL) {
4265 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4267 void TypeLocReader::VisitAttributedTypeLoc(AttributedTypeLoc TL) {
4268 TL.setAttrNameLoc(ReadSourceLocation(Record, Idx));
4269 if (TL.hasAttrOperand()) {
4273 TL.setAttrOperandParensRange(range);
4275 if (TL.hasAttrExprOperand()) {
4277 TL.setAttrExprOperand(Reader.ReadExpr(F));
4279 TL.setAttrExprOperand(0);
4280 } else if (TL.hasAttrEnumOperand())
4281 TL.setAttrEnumOperandLoc(ReadSourceLocation(Record, Idx));
4283 void TypeLocReader::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
4284 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4287 SubstTemplateTypeParmTypeLoc TL) {
4288 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4291 SubstTemplateTypeParmPackTypeLoc TL) {
4292 TL
4295 TemplateSpecializationTypeLoc TL) {
4296 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx));
4297 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx));
4298 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
4299 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
4300 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i)
4301 TL.setArgLocInfo(i,
4303 TL.getTypePtr()->getArg(i).getKind(),
4306 void TypeLocReader::VisitParenTypeLoc(ParenTypeLoc TL) {
4307 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
4308 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
4310 void TypeLocReader::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) {
4311 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
4312 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
4314 void TypeLocReader::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) {
4315 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4317 void TypeLocReader::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) {
4318 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
4319 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
4320 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4323 DependentTemplateSpecializationTypeLoc TL) {
4324 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
4325 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
4326 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx));
4327 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx));
4328 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
4329 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
4330 for (unsigned I = 0, E = TL.getNumArgs(); I != E; ++I)
4331 TL.setArgLocInfo(I,
4333 TL.getTypePtr()->getArg(I).getKind(),
4336 void TypeLocReader::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) {
4337 TL.setEllipsisLoc(ReadSourceLocation(Record, Idx));
4339 void TypeLocReader::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) {
4340 TL.setNameLoc(ReadSourceLocation(Record, Idx));
4342 void TypeLocReader::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) {
4343 TL.setHasBaseTypeAsWritten(Record[Idx++]);
4344 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
4345 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
4346 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
4347 TL.setProtocolLoc(i, ReadSourceLocation(Record, Idx));
4349 void TypeLocReader::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) {
4350 TL.setStarLoc(ReadSourceLocation(Record, Idx));
4352 void TypeLocReader::VisitAtomicTypeLoc(AtomicTypeLoc TL) {
4353 TL.setKWLoc(ReadSourceLocation(Record, Idx));
4354 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
4355 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
4367 for (TypeLoc TL = TInfo->getTypeLoc(); !TL.isNull(); TL = TL.getNextTypeLoc())
4368 TLR.Visit(TL);