| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexTypeSourceInfo.cpp | 60 SourceLocation Loc = TL.getNameLoc(); in VisitTypedefTypeLoc() 84 if (auto *C = TL.getNamedConcept()) in VisitAutoTypeLoc() 118 bool VisitTagTypeLoc(TagTypeLoc TL) { in VisitTagTypeLoc() argument 119 TagDecl *D = TL.getDecl(); in VisitTagTypeLoc() 124 if (TL.isDefinition()) { in VisitTagTypeLoc() 135 return IndexCtx.handleReference(TL.getIFaceDecl(), TL.getNameLoc(), in VisitObjCInterfaceTypeLoc() 141 IndexCtx.handleReference(TL.getProtocol(i), TL.getProtocolLoc(i), in VisitObjCObjectTypeLoc() 165 auto *T = TL.getTypePtr(); in VisitTemplateSpecializationTypeLoc() 195 auto *T = TL.getTypePtr(); in VisitDeducedTemplateSpecializationTypeLoc() 205 return IndexCtx.handleReference(TL.getDecl(), TL.getNameLoc(), Parent, in VisitInjectedClassNameTypeLoc() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Comment.cpp | 126 TypeLoc TL = SrcTL.IgnoreParens(); in lookThroughTypedefOrTypeAliasLocs() local 135 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 141 if (AdjustedTypeLoc ATL = TL.getAs<AdjustedTypeLoc>()) in lookThroughTypedefOrTypeAliasLocs() 150 return TL; in lookThroughTypedefOrTypeAliasLocs() 155 while (PrevTL != TL) { in getFunctionTypeLoc() 156 PrevTL = TL; in getFunctionTypeLoc() 157 TL = lookThroughTypedefOrTypeAliasLocs(TL); in getFunctionTypeLoc() 160 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) { in getFunctionTypeLoc() 166 TL.getAs<TemplateSpecializationTypeLoc>()) { in getFunctionTypeLoc() 350 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill() local [all …]
|
| H A D | TypeLoc.cpp | 54 if (TL.isNull()) return SourceRange(); in getLocalSourceRangeImpl() 55 return TypeLocRanger().Visit(TL); in getLocalSourceRangeImpl() 125 return NextLoc().Visit(TL); in getNextTypeLocImpl() 134 switch (TL.getTypeLocClass()) { in initializeImpl() 184 TypeLoc TL(getType(), Data); in copy() local 186 TypeLocCopier(other).Visit(TL); in copy() 188 } while ((TL = TL.getNextTypeLoc())); in copy() 304 return TSTChecker().Visit(TL); in isKind() 434 TL = PTL.getInnerLoc(); in IgnoreParensImpl() 435 return TL; in IgnoreParensImpl() [all …]
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransGCAttrs.cpp | 41 handleAttr(TL); in VisitAttributedTypeLoc() 63 TypeLoc TL = TInfo->getTypeLoc(); in lookForAttribute() local 64 while (TL) { in lookForAttribute() 66 TL = QL.getUnqualifiedLoc(); in lookForAttribute() 70 TL = Attr.getModifiedLoc(); in lookForAttribute() 73 TL = MDTL.getInnerLoc(); in lookForAttribute() 75 TL = Arr.getElementLoc(); in lookForAttribute() 77 TL = PT.getPointeeLoc(); in lookForAttribute() 79 TL = RT.getPointeeLoc(); in lookForAttribute() 242 TypeLoc TL = TInfo->getTypeLoc(); in checkAllAtProps() local [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | aix-tls-variables-ppc32.ll | 37 ; CHECK-NEXT: .globl tls_global_int_external_val_initialized[TL] 41 ; NODATASEC-NEXT: .csect .tdata[TL],3 72 ; CHECK-NEXT: .lglobl tls_global_int_local_val_initialized[TL] 76 ; NODATASEC-NEXT: .csect .tdata[TL],3 104 ; CHECK-NEXT: .weak tls_global_int_weak_zero_initialized[TL] 108 ; NODATASEC-NEXT: .csect .tdata[TL],3 136 ; CHECK-NEXT: .weak tls_global_int_weak_val_initialized[TL] 140 ; NODATASEC-NEXT: .csect .tdata[TL],3 195 ; NODATASEC-NEXT: .csect .tdata[TL],3 229 ; NODATASEC-NEXT: .csect .tdata[TL],3 [all …]
|
| H A D | aix-tls-variables-ppc64.ll | 25 ; CHECK-NEXT: .csect tls_global_long_long_internal_val_initialized[TL],3 26 ; CHECK-NEXT: .lglobl tls_global_long_long_internal_val_initialized[TL] 29 ; NODATASEC-NEXT: .csect .tdata[TL],3 55 ; CHECK-NEXT: .csect tls_global_long_long_weak_val_initialized[TL],3 56 ; CHECK-NEXT: .weak tls_global_long_long_weak_val_initialized[TL] 59 ; NODATASEC-NEXT: .csect .tdata[TL],3 77 ; CHECK-NEXT: .csect tls_global_long_long_weak_zero_initialized[TL],3 78 ; CHECK-NEXT: .weak tls_global_long_long_weak_zero_initialized[TL] 81 ; NODATASEC-NEXT: .csect .tdata[TL],3
|
| H A D | aix-tls-gd-double.ll | 667 ; SMALL64-NEXT: .tc .TGInit[TC],TGInit[TL]@m 669 ; SMALL64-NEXT: .tc TGInit[TC],TGInit[TL]@gd 671 ; SMALL64-NEXT: .tc .TIInit[TC],TIInit[TL]@m 673 ; SMALL64-NEXT: .tc TIInit[TC],TIInit[TL]@gd 675 ; SMALL64-NEXT: .tc .TWInit[TC],TWInit[TL]@m 677 ; SMALL64-NEXT: .tc TWInit[TC],TWInit[TL]@gd 687 ; LARGE64-NEXT: .tc .TGInit[TE],TGInit[TL]@m 689 ; LARGE64-NEXT: .tc TGInit[TE],TGInit[TL]@gd 691 ; LARGE64-NEXT: .tc .TIInit[TE],TIInit[TL]@m 693 ; LARGE64-NEXT: .tc TIInit[TE],TIInit[TL]@gd [all …]
|
| H A D | aix-tls-gd-int.ll | 639 ; SMALL32-NEXT: .tc .TGUninit[TC],TGUninit[TL]@m 641 ; SMALL32-NEXT: .tc TGUninit[TC],TGUninit[TL]@gd 643 ; SMALL32-NEXT: .tc .TGInit[TC],TGInit[TL]@m 645 ; SMALL32-NEXT: .tc TGInit[TC],TGInit[TL]@gd 651 ; SMALL32-NEXT: .tc .TWUninit[TC],TWUninit[TL]@m 663 ; LARGE32-NEXT: .tc .TGInit[TE],TGInit[TL]@m 665 ; LARGE32-NEXT: .tc TGInit[TE],TGInit[TL]@gd 683 ; SMALL64-NEXT: .tc .TGInit[TC],TGInit[TL]@m 685 ; SMALL64-NEXT: .tc TGInit[TC],TGInit[TL]@gd 703 ; LARGE64-NEXT: .tc .TGInit[TE],TGInit[TL]@m [all …]
|
| H A D | aix-tls-gd-longlong.ll | 679 ; SMALL32-NEXT: .tc .TGInit[TC],TGInit[TL]@m 681 ; SMALL32-NEXT: .tc TGInit[TC],TGInit[TL]@gd 687 ; SMALL32-NEXT: .tc .TIInit[TC],TIInit[TL]@m 689 ; SMALL32-NEXT: .tc TIInit[TC],TIInit[TL]@gd 691 ; SMALL32-NEXT: .tc .TWInit[TC],TWInit[TL]@m 693 ; SMALL32-NEXT: .tc TWInit[TC],TWInit[TL]@gd 699 ; LARGE32-NEXT: .tc .TGInit[TE],TGInit[TL]@m 701 ; LARGE32-NEXT: .tc TGInit[TE],TGInit[TL]@gd 707 ; LARGE32-NEXT: .tc .TIInit[TE],TIInit[TL]@m 709 ; LARGE32-NEXT: .tc TIInit[TE],TIInit[TL]@gd [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | DumpAST.cpp | 125 std::string getKind(const TypeLoc &TL) { in getKind() argument 127 if (TL.getTypeLocClass() == TypeLoc::Qualified) in getKind() 129 return TL.getType()->getTypeClassName(); in getKind() 254 std::string getDetail(const TypeLoc &TL) { in getDetail() argument 255 if (TL.getType().hasLocalQualifiers()) in getDetail() 287 if (TypeLoc TL = CCI->getBaseClassLoc()) in getDetail() local 288 return getDetail(TL); in getDetail() 327 std::string getArcana(const TypeLoc &TL) { in getArcana() argument 343 bool TraverseTypeLoc(TypeLoc TL) { in TraverseTypeLoc() argument 344 return !TL || traverseNode("type", TL, [&] { Base::TraverseTypeLoc(TL); }); in TraverseTypeLoc() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 110 SourceLocation StartLocationForType(TypeLoc TL) { in StartLocationForType() argument 118 TL = TL.getNextTypeLoc(); in StartLocationForType() 120 return TL.getBeginLoc(); in StartLocationForType() 123 SourceLocation EndLocationForType(TypeLoc TL) { in EndLocationForType() argument 126 TL.getTypeLocClass() == TypeLoc::Qualified) in EndLocationForType() 127 TL = TL.getNextTypeLoc(); in EndLocationForType() 133 return TL.castAs<TemplateSpecializationTypeLoc>() in EndLocationForType() 137 return TL.getEndLoc(); in EndLocationForType() 142 while (TL.getTypeLocClass() == TypeLoc::Qualified) in GetNestedNameForType() 143 TL = TL.getNextTypeLoc(); in GetNestedNameForType() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | RecursiveASTVisitor.h | 235 bool TraverseTypeLoc(TypeLoc TL); 421 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); } 730 if (TL.isNull()) 733 switch (TL.getTypeLocClass()) { 1338 if (TL.getParam(I)) { 1375 if (TL.isConstrained()) { 1420 if (TL.getQualifierLoc()) { 1431 if (TL.getQualifierLoc()) { 1445 ObjCProtocolLoc ProtocolLoc(TL.getProtocol(I), TL.getProtocolLoc(I)); 1455 if (TL.getTypePtr()->getBaseType().getTypePtr() != TL.getTypePtr()) [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | TreeTransform.h | 4182 if (!TL) in TransformNestedNameSpecifierLoc() 4185 if (TL.getType()->isDependentType() || TL.getType()->isRecordType() || in TransformNestedNameSpecifierLoc() 4894 return TL; in TransformTypeInObjectScope() 5925 TL.getBeginLoc(), TL.getParams(), in TransformFunctionProtoType() 5951 TL.getBeginLoc(), TL.getParams(), in TransformFunctionProtoType() 6691 ArgIterator(TL, TL.getNumArgs()), in TransformTemplateSpecializationType() 6746 ArgIterator(TL, TL.getNumArgs()), in TransformDependentTemplateSpecializationType() 7099 TLB.pushFullCopy(TL); in TransformObjCInterfaceType() 7100 return TL.getType(); in TransformObjCInterfaceType() 7239 TL.getTypeArgsRAngleLoc(), TL.getProtocolLAngleLoc(), in TransformObjCObjectType() [all …]
|
| H A D | SemaType.cpp | 5974 TL.setAttr(State.takeAttrForAttributedType(TL.getTypePtr())); in fillAttributedTypeLoc() 5997 Visit(TL.getInnerLoc()); in VisitMacroQualifiedTypeLoc() 5998 TL.setExpansionLoc( in VisitMacroQualifiedTypeLoc() 6006 void VisitPointerTypeLoc(PointerTypeLoc TL) { Visit(TL.getNextTypeLoc()); } in VisitPointerTypeLoc() argument 6043 TL.copy(NamedTL); in VisitTemplateSpecializationTypeLoc() 6123 TL.copy( in VisitDependentTemplateSpecializationTypeLoc() 6289 TL.setAmpLoc(Chunk.Loc); in VisitLValueReferenceTypeLoc() 6323 TL.setKWLoc(Chunk.Loc); in VisitPipeTypeLoc() 6331 void VisitVectorTypeLoc(VectorTypeLoc TL) { TL.setNameLoc(Chunk.Loc); } in VisitVectorTypeLoc() argument 6436 TL.setExpansionLoc( in GetTypeSourceInfoForDeclarator() [all …]
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 324 if (TL.getSizeExpr()) in VisitArrayTypeLoc() 329 VisitArrayTypeLoc(TL); in VisitConstantArrayTypeLoc() 333 VisitArrayTypeLoc(TL); in VisitIncompleteArrayTypeLoc() 337 VisitArrayTypeLoc(TL); in VisitVariableArrayTypeLoc() 342 VisitArrayTypeLoc(TL); in VisitDependentSizedArrayTypeLoc() 402 VisitFunctionTypeLoc(TL); in VisitFunctionProtoTypeLoc() 406 VisitFunctionTypeLoc(TL); in VisitFunctionNoProtoTypeLoc() 458 if (TL.isConstrained()) { in VisitAutoTypeLoc() 470 if (TL.isDecltypeAuto()) in VisitAutoTypeLoc() 5370 for (; !TL.isNull(); TL = TL.getNextTypeLoc()) in AddTypeLoc() [all …]
|
| H A D | ASTReader.cpp | 6602 VisitArrayTypeLoc(TL); in VisitConstantArrayTypeLoc() 6606 VisitArrayTypeLoc(TL); in VisitIncompleteArrayTypeLoc() 6610 VisitArrayTypeLoc(TL); in VisitVariableArrayTypeLoc() 6615 VisitArrayTypeLoc(TL); in VisitDependentSizedArrayTypeLoc() 6671 VisitFunctionTypeLoc(TL); in VisitFunctionProtoTypeLoc() 6675 VisitFunctionTypeLoc(TL); in VisitFunctionNoProtoTypeLoc() 6746 TL.setAttr(ReadAttr()); in VisitAttributedTypeLoc() 6774 TL.setArgLocInfo( in VisitTemplateSpecializationTypeLoc() 6809 TL.setArgLocInfo( in VisitDependentTemplateSpecializationTypeLoc() 6869 for (; !TL.isNull(); TL = TL.getNextTypeLoc()) in readTypeLoc() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Introspection/ |
| H A D | IntrospectionTest.cpp | 1249 auto Result = NodeIntrospection::GetLocations(*TL); in TEST() 1268 STRING_LOCATION_STDPAIR(TL, getBeginLoc()), in TEST() 1269 STRING_LOCATION_STDPAIR(TL, getEndLoc()), in TEST() 1286 STRING_LOCATION_PAIR(TL, getLocalSourceRange()), in TEST() 1289 STRING_LOCATION_PAIR(TL, getSourceRange()) in TEST() 1313 auto Result = NodeIntrospection::GetLocations(*TL); in TEST() 1330 STRING_LOCATION_STDPAIR(TL, getBeginLoc()), in TEST() 1331 STRING_LOCATION_STDPAIR(TL, getEndLoc()), in TEST() 1347 STRING_LOCATION_PAIR(TL, getLocalSourceRange()), in TEST() 1350 STRING_LOCATION_PAIR(TL, getSourceRange()) in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
| H A D | MemberPointerTypeLoc.cpp | 19 bool VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) { in VisitTemplateTypeParmTypeLoc() argument 20 if (!TL) in VisitTemplateTypeParmTypeLoc() 22 Match(TL.getDecl()->getName(), TL.getNameLoc()); in VisitTemplateTypeParmTypeLoc()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseTrailingReturnTypeCheck.cpp | 44 bool TraverseTypeLoc(TypeLoc TL, bool Elaborated = false) { in TraverseTypeLoc() 45 if (TL.isNull()) in TraverseTypeLoc() 49 switch (TL.getTypeLocClass()) { in TraverseTypeLoc() 61 if (visitUnqualName(TL.getAs<TemplateSpecializationTypeLoc>() in TraverseTypeLoc() 74 if (visitUnqualName(TL.getAs<UsingTypeLoc>() in TraverseTypeLoc() 90 bool TraverseQualifiedTypeLoc(QualifiedTypeLoc TL) { in TraverseQualifiedTypeLoc() 91 return TraverseTypeLoc(TL.getUnqualifiedLoc()); in TraverseQualifiedTypeLoc() 96 bool TraverseElaboratedTypeLoc(ElaboratedTypeLoc TL) { in TraverseElaboratedTypeLoc() 97 if (TL.getQualifierLoc() && in TraverseElaboratedTypeLoc() 98 !TraverseNestedNameSpecifierLoc(TL.getQualifierLoc())) in TraverseElaboratedTypeLoc() [all …]
|
| H A D | DeprecatedIosBaseAliasesCheck.cpp | 48 const auto *TL = Result.Nodes.getNodeAs<TypeLoc>("TypeLoc"); in check() local 49 SourceLocation IoStateLoc = TL->getBeginLoc(); in check() 53 bool Fix = Replacement && !TL->getType()->isDependentType(); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | IntegerTypesCheck.cpp | 70 auto TL = *Result.Nodes.getNodeAs<TypeLoc>("tl"); in check() local 71 SourceLocation Loc = TL.getBeginLoc(); in check() 77 if (auto QualLoc = TL.getAs<QualifiedTypeLoc>()) in check() 78 TL = QualLoc.getUnqualifiedLoc(); in check() 80 auto BuiltinLoc = TL.getAs<BuiltinTypeLoc>(); in check()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | AArch64SelectionDAGTest.cpp | 167 TargetLowering TL(*TM); in TEST_F() local 186 TargetLowering TL(*TM); in TEST_F() local 212 TargetLowering TL(*TM); in TEST_F() local 273 TargetLowering TL(*TM); in TEST_F() local 293 TargetLowering TL(*TM); in TEST_F() local 317 TargetLowering TL(*TM); in TEST_F() local 337 TargetLowering TL(*TM); in TEST_F() local 361 TargetLowering TL(*TM); in TEST_F() local 376 TargetLowering TL(*TM); in TEST_F() local 394 TargetLowering TL(*TM); in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/ |
| H A D | RecursiveSymbolVisitor.h | 108 bool VisitTypedefTypeLoc(TypedefTypeLoc TL) { in VisitTypedefTypeLoc() argument 110 Lexer::getLocForEndOfToken(TL.getBeginLoc(), 0, SM, LangOpts); in VisitTypedefTypeLoc() 111 return visit(TL.getTypedefNameDecl(), TL.getBeginLoc(), TypeEndLoc); in VisitTypedefTypeLoc()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 537 TL != TLEnd; ++TL) { in VisitChildren() 1661 return Visit(MakeCursorTypeRef(TL.getTypedefNameDecl(), TL.getNameLoc(), TU)); in VisitTypedefTypeLoc() 1665 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitUnresolvedUsingTypeLoc() 1669 if (TL.isDefinition()) in VisitTagTypeLoc() 1672 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTagTypeLoc() 1681 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTemplateTypeParmTypeLoc() 1685 return Visit(MakeCursorObjCClassRef(TL.getIFaceDecl(), TL.getNameLoc(), TU)); in VisitObjCInterfaceTypeLoc() 1689 if (Visit(MakeCursorTypeRef(TL.getDecl(), TL.getBeginLoc(), TU))) in VisitObjCTypeParamTypeLoc() 1692 if (Visit(MakeCursorObjCProtocolRef(TL.getProtocol(I), TL.getProtocolLoc(I), in VisitObjCTypeParamTypeLoc() 1701 if (TL.hasBaseTypeAsWritten() && Visit(TL.getBaseLoc())) in VisitObjCObjectTypeLoc() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DirectXSubtarget.h | 32 DirectXTargetLowering TL; variable 46 return &TL; in getTargetLowering()
|