Home
last modified time | relevance | path

Searched refs:TypeLoc (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DTypeLoc.cpp46 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
54 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl()
65 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
85 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
115 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
125 TypeLoc TypeLoc::getNextTypeLocImpl(TypeLoc TL) { in getNextTypeLocImpl()
160 void Visit##CLASS##TypeLoc(CLASS##TypeLoc dest) { \
168 void TypeLoc::copy(TypeLoc other) { in copy()
293 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
441 TypeLoc TypeLoc::IgnoreParensImpl(TypeLoc TL) { in IgnoreParensImpl()
[all …]
H A DASTTypeTraits.cpp151 ASTNodeKind ASTNodeKind::getFromNode(const TypeLoc &T) { in getFromNode()
155 case TypeLoc::CLASS: \ in getFromNode()
156 return ASTNodeKind(NKI_##CLASS##TypeLoc); in getFromNode()
203 else if (const TypeLoc *TL = get<TypeLoc>()) in print()
240 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
H A DComment.cpp128 static TypeLoc lookThroughTypedefOrTypeAliasLocs(TypeLoc &SrcTL) { in lookThroughTypedefOrTypeAliasLocs()
129 TypeLoc TL = SrcTL.IgnoreParens(); in lookThroughTypedefOrTypeAliasLocs()
156 static bool getFunctionTypeLoc(TypeLoc TL, FunctionTypeLoc &ResFTL) { in getFunctionTypeLoc()
157 TypeLoc PrevTL; in getFunctionTypeLoc()
180 TypeLoc TL = MaybeFunctionTSI->getTypeLoc().getUnqualifiedLoc(); in getFunctionTypeLoc()
354 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill()
H A DNestedNameSpecifier.cpp444 TypeLoc TL(Qualifier->getAsType(), TypeData); in getLocalSourceRange()
453 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { in getTypeLoc()
456 return TypeLoc(); in getTypeLoc()
461 return TypeLoc(Qualifier->getAsType(), TypeData); in getTypeLoc()
565 TypeLoc TL, in Extend()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DTypeLocBuilder.cpp18 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()
46 auto L = TypeLoc(T, nullptr); in pushTrivial()
49 SmallVector<TypeLoc, 4> TypeLocs; in pushTrivial()
57 case TypeLoc::CLASS: { \ in pushTrivial()
87 QualType TLast = TypeLoc(T, nullptr).getNextTypeLoc().getType(); in pushImpl()
[all …]
H A DTypeLocBuilder.h68 void pushFullCopy(TypeLoc L);
103 TyLocType Loc = TypeLoc(T, nullptr).castAs<TyLocType>(); in push()
123 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext()
131 return TypeLoc(T, Mem); in getTypeLocInContext()
136 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment);
147 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc()
151 return TypeLoc(T, &Buffer[Index]); in getTemporaryTypeLoc()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLocVisitor.h27 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 DTypeLoc.h52 class Class##TypeLoc;
59 class TypeLoc {
67 TypeLoc() = default;
81 TypeLoc& tl = t; in castAs()
93 TypeLoc& tl = t; in getAs()
220 friend bool operator==(const TypeLoc &LHS, const TypeLoc &RHS) {
224 friend bool operator!=(const TypeLoc &LHS, const TypeLoc &RHS) {
239 static TypeLoc getNextTypeLocImpl(TypeLoc TL);
240 static TypeLoc IgnoreParensImpl(TypeLoc TL);
271 friend class TypeLoc;
[all …]
H A DASTTypeTraits.h66 static ASTNodeKind getFromNode(const TypeLoc &T);
142 #define TYPELOC(CLASS, PARENT) NKI_##CLASS##TypeLoc,
216 #define TYPELOC(CLASS, PARENT) KIND_TO_KIND_ID(CLASS##TypeLoc)
218 KIND_TO_KIND_ID(TypeLoc)
327 auto TLA = getUnchecked<TypeLoc>();
328 auto TLB = Other.getUnchecked<TypeLoc>();
359 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
388 auto TL = Val.getUnchecked<TypeLoc>();
512 QualType, TypeLoc, ObjCProtocolLoc>
576 T, std::enable_if_t<std::is_base_of<TypeLoc, T>::value>>
[all …]
H A DTypeLocNodes.def1 //===-- 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 DNestedNameSpecifier.h38 class TypeLoc; variable
336 TypeLoc getTypeLoc() const;
403 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
H A DRecursiveASTVisitor.h222 bool TraverseTypeLoc(TypeLoc TL);
409 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
414 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); }
415 bool VisitTypeLoc(TypeLoc TL) { return true; }
430 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
432 TRY_TO(Visit##CLASS##TypeLoc(TL)); \
435 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
707 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) {
715 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
2666 TypeLoc TL = S->getCallOperator()->getTypeSourceInfo()->getTypeLoc();
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp110 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()
142 while (TL.getTypeLocClass() == TypeLoc::Qualified) in GetNestedNameForType()
372 bool VisitTypeLoc(TypeLoc Loc) { in VisitTypeLoc()
374 TypeLoc ParentTypeLoc; in VisitTypeLoc()
425 TypeLoc TargetLoc = Loc; in VisitTypeLoc()
432 TypeLoc TargetLoc = Loc; in VisitTypeLoc()
495 const TypeLoc *getParentTypeLoc(TypeLoc Loc) const { in getParentTypeLoc()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp132 else if (const TypeLoc *T = DynNode.get<TypeLoc>()) in findMatch()
209 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
345 bool baseTraverse(TypeLoc TypeLocNode) { in baseTraverse()
504 bool TraverseTypeLoc(TypeLoc TypeNode);
718 } else if (auto *N = Node.get<TypeLoc>()) { in match()
1095 void matchDispatch(const TypeLoc *Node) { in matchDispatch()
1096 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch()
1491 bool MatchASTVisitor::TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
1629 Matchers.TypeLoc.emplace_back(NodeMatch, Action); in addMatcher()
1668 } else if (NodeMatch.canConvertTo<TypeLoc>()) { in addDynamicMatcher()
[all …]
H A DASTMatchersInternal.cpp775 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
777 const internal::VariadicDynCastAllOfMatcher<TypeLoc, QualifiedTypeLoc>
779 const internal::VariadicDynCastAllOfMatcher<TypeLoc, PointerTypeLoc>
781 const internal::VariadicDynCastAllOfMatcher<TypeLoc, ReferenceTypeLoc>
783 const internal::VariadicDynCastAllOfMatcher<TypeLoc,
786 const internal::VariadicDynCastAllOfMatcher<TypeLoc, ElaboratedTypeLoc>
1029 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
1030 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
1034 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
1035 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.h32 class TypeLoc; variable
105 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h146 using TypeLocMatcher = internal::Matcher<TypeLoc>;
295 TypeLoc), in AST_POLYMORPHIC_MATCHER_REGEX() argument
2796 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
3583 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
4081 internal::Matcher<TypeLoc>, Inner) { in AST_POLYMORPHIC_MATCHER_P() argument
6773 AST_MATCHER_FUNCTION_P_OVERLOAD(internal::BindableMatcher<TypeLoc>, loc,
6775 return internal::BindableMatcher<TypeLoc>(
6814 AST_MATCHER_P(FunctionDecl, hasReturnTypeLoc, internal::Matcher<TypeLoc>, in AST_MATCHER_P() argument
6840 AST_MATCHER_P(PointerTypeLoc, hasPointeeLoc, internal::Matcher<TypeLoc>, in AST_MATCHER_P() argument
6883 TypeLoc, TemplateSpecializationTypeLoc>
[all …]
H A DASTMatchersMacros.h407 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 DASTMatchersInternal.h748 std::is_base_of<TypeLoc, T>::value ||
763 std::is_base_of<TypeLoc, T>::value ||
779 std::is_base_of<TypeLoc, T>::value ||
1170 std::is_same<T, TypeLoc>::value ||
1185 Type, TypeLoc, CXXCtorInitializer, Attr>;
1802 class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> {
1809 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder,
1850 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> &InnerMatcher,
1851 TypeLoc (T::*TraverseFunction)() const)
1856 TypeLoc NextNode = (Node.*TraverseFunction)();
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h24 class TypeLoc; variable
212 void AddTypeLoc(TypeLoc TL, LocSeq *Seq = nullptr);
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DEmptyNodeIntrospection.inc.in36 clang::TypeLoc const&) {
/freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp60 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc(); in VisitBinaryOperator()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/
H A DNodeIntrospection.h95 NodeLocationAccessors GetLocations(clang::TypeLoc const &);
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp232 if (const auto *T = Node.get<TypeLoc>()) { in name()
233 TypeLoc Loc = *T; in name()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h86 bool VisitTypeLoc(const TypeLoc Loc) { in VisitTypeLoc()

1234