/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | TypeLoc.cpp | 45 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 53 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl() 64 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 73 unsigned TypeLoc::getLocalAlignmentForType(QualType Ty) { in getLocalAlignmentForType() 75 return TypeAligner().Visit(TypeLoc(Ty, nullptr)); in getLocalAlignmentForType() 84 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 93 unsigned TypeLoc::getFullDataSizeForType(QualType Ty) { in getFullDataSizeForType() 95 TypeLoc TyLoc(Ty, nullptr); in getFullDataSizeForType() 110 class NextLoc : public TypeLocVisitor<NextLoc, TypeLoc> { 114 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ [all …]
|
H A D | Comment.cpp | 130 static TypeLoc lookThroughTypedefOrTypeAliasLocs(TypeLoc &SrcTL) { in lookThroughTypedefOrTypeAliasLocs() 131 TypeLoc TL = SrcTL.IgnoreParens(); in lookThroughTypedefOrTypeAliasLocs() 158 static bool getFunctionTypeLoc(TypeLoc TL, FunctionTypeLoc &ResFTL) { in getFunctionTypeLoc() 159 TypeLoc PrevTL; in getFunctionTypeLoc() 182 TypeLoc TL = MaybeFunctionTSI->getTypeLoc().getUnqualifiedLoc(); in getFunctionTypeLoc() 309 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill() 333 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill() 354 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill()
|
H A D | ASTTypeTraits.cpp | 157 else if (const TypeLoc *TL = get<TypeLoc>()) in print() 186 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
|
H A D | NestedNameSpecifier.cpp | 442 TypeLoc TL(Qualifier->getAsType(), TypeData); in getLocalSourceRange() 451 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { in getTypeLoc() 454 return TypeLoc(); in getTypeLoc() 459 return TypeLoc(Qualifier->getAsType(), TypeData); in getTypeLoc() 563 TypeLoc TL, in Extend()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | TypeLocVisitor.h | 27 RetTy Visit(TypeLoc TyLoc) { in Visit() 31 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); in Visit() 41 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); in Visit() 48 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 53 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); } in VisitTypeLoc()
|
H A D | TypeLoc.h | 51 class Class##TypeLoc; 58 class TypeLoc { 66 TypeLoc() = default; 67 TypeLoc(QualType ty, void *opaqueData) in TypeLoc() function 69 TypeLoc(const Type *ty, void *opaqueData) in TypeLoc() function 80 TypeLoc& tl = t; in castAs() 92 TypeLoc& tl = t; in getAs() 169 TypeLoc getNextTypeLoc() const { in getNextTypeLoc() 176 TypeLoc IgnoreParens() const; 184 TypeLoc findExplicitQualifierLoc() const; [all …]
|
H A D | ASTTypeTraits.h | 199 KIND_TO_KIND_ID(TypeLoc) 302 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) { 303 auto TLA = getUnchecked<TypeLoc>(); 304 auto TLB = Other.getUnchecked<TypeLoc>(); 334 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) 335 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>(); 363 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(Val.NodeKind)) { 364 auto TL = Val.getUnchecked<TypeLoc>(); 465 QualType, TypeLoc> 520 TypeLoc, void> : public ValueConverter<TypeLoc> {};
|
H A D | TypeLocNodes.def | 1 //===-- TypeLocNodes.def - Metadata about TypeLoc wrappers ------*- C++ -*-===// 9 // This file defines the TypeLoc info database. Each node is 14 // TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is 31 TYPELOC(Qualified, TypeLoc)
|
H A D | NestedNameSpecifier.h | 38 class TypeLoc; variable 336 TypeLoc getTypeLoc() const; 403 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
|
H A D | RecursiveASTVisitor.h | 236 bool TraverseTypeLoc(TypeLoc TL); 416 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL); 421 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); } 422 bool VisitTypeLoc(TypeLoc TL) { return true; } 437 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \ 439 TRY_TO(Visit##CLASS##TypeLoc(TL)); \ 442 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; } 636 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) { 643 case TypeLoc::CLASS: \ 644 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>()); [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | TypeLocBuilder.cpp | 18 void TypeLocBuilder::pushFullCopy(TypeLoc L) { in pushFullCopy() 22 SmallVector<TypeLoc, 4> TypeLocs; in pushFullCopy() 23 TypeLoc CurTL = L; in pushFullCopy() 30 TypeLoc CurTL = TypeLocs[e-i-1]; in pushFullCopy() 34 case TypeLoc::CLASS: { \ in pushFullCopy() 35 CLASS##TypeLoc NewTL = push<class CLASS##TypeLoc>(CurTL.getType()); \ in pushFullCopy() 62 TypeLoc TypeLocBuilder::pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment) { in pushImpl() 64 QualType TLast = TypeLoc(T, nullptr).getNextTypeLoc().getType(); in pushImpl() 159 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
|
H A D | TypeLocBuilder.h | 64 void pushFullCopy(TypeLoc L); 94 TyLocType Loc = TypeLoc(T, nullptr).castAs<TyLocType>(); in push() 114 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext() 122 return TypeLoc(T, Mem); in getTypeLocInContext() 127 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment); 138 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc() 142 return TypeLoc(T, &Buffer[Index]); in getTemporaryTypeLoc()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRLocFinder.cpp | 110 SourceLocation StartLocationForType(TypeLoc TL) { in StartLocationForType() 123 SourceLocation EndLocationForType(TypeLoc TL) { in EndLocationForType() 125 while (TL.getTypeLocClass() == TypeLoc::Elaborated || in EndLocationForType() 126 TL.getTypeLocClass() == TypeLoc::Qualified) in EndLocationForType() 132 if (TL.getTypeLocClass() == TypeLoc::TemplateSpecialization) { in EndLocationForType() 140 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { in GetNestedNameForType() 142 while (TL.getTypeLocClass() == TypeLoc::Qualified) in GetNestedNameForType() 371 bool VisitTypeLoc(TypeLoc Loc) { in VisitTypeLoc() 373 TypeLoc ParentTypeLoc; in VisitTypeLoc() 384 if (const auto *TL = Parents[0].get<TypeLoc>()) in VisitTypeLoc() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/ |
H A D | ASTMatchFinder.cpp | 129 else if (const TypeLoc *T = DynNode.get<TypeLoc>()) in findMatch() 204 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc() 331 bool baseTraverse(TypeLoc TypeLocNode) { in baseTraverse() 487 bool TraverseTypeLoc(TypeLoc TypeNode); 541 TypeLoc TL = LE->getCallOperator()->getTypeSourceInfo()->getTypeLoc(); in dataTraverseNode() 691 } else if (auto *N = Node.get<TypeLoc>()) { in match() 879 void matchDispatch(const TypeLoc *Node) { in matchDispatch() 880 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch() 1248 bool MatchASTVisitor::TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc() 1381 Matchers.TypeLoc.emplace_back(NodeMatch, Action); in addMatcher() [all …]
|
H A D | ASTMatchersInternal.cpp | 773 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc; 1002 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 1003 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>> 1007 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 1008 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/ |
H A D | IndexingContext.h | 32 class TypeLoc; variable 107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchersMacros.h | 407 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \ 412 TypeLoc, \ 421 TypeLoc, \ 432 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \ 436 TypeLoc, \
|
H A D | ASTMatchersInternal.h | 759 std::is_base_of<TypeLoc, T>::value || 773 std::is_base_of<TypeLoc, T>::value || 788 std::is_base_of<TypeLoc, T>::value, 1174 std::is_same<T, TypeLoc>::value || 1188 Type, TypeLoc, CXXCtorInitializer>; 1214 TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, TypeLoc, 1830 class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> { 1837 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder, 1878 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> &InnerMatcher, 1879 TypeLoc (T::*TraverseFunction)() const) [all …]
|
H A D | ASTMatchers.h | 144 using TypeLocMatcher = internal::Matcher<TypeLoc>; 244 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 265 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 291 TypeLoc), in AST_POLYMORPHIC_MATCHER_REGEX() argument 313 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument 2693 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc; 3480 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 3481 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>> 3497 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 3498 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>> [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/ |
H A D | ASTRecordWriter.h | 23 class TypeLoc; variable 206 void AddTypeLoc(TypeLoc TL);
|
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/ |
H A D | CursorVisitor.h | 258 #define TYPELOC(CLASS, PARENT) bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc);
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
H A D | TransARCAssign.cpp | 60 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc(); in VisitBinaryOperator()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ |
H A D | EmptyNodeIntrospection.inc.in | 36 clang::TypeLoc const&) {
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
H A D | RangeSelector.cpp | 232 if (const auto *T = Node.get<TypeLoc>()) { in name() 233 TypeLoc Loc = *T; in name()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/ |
H A D | NodeIntrospection.h | 95 NodeLocationAccessors GetLocations(clang::TypeLoc const &);
|