Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTypeLoc.cpp45 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
53 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl()
64 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
84 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
114 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
124 TypeLoc TypeLoc::getNextTypeLocImpl(TypeLoc TL) { in getNextTypeLocImpl()
159 void Visit##CLASS##TypeLoc(CLASS##TypeLoc dest) { \
167 void TypeLoc::copy(TypeLoc other) { in copy()
277 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
422 TypeLoc TypeLoc::IgnoreParensImpl(TypeLoc TL) { in IgnoreParensImpl()
[all …]
H A DComment.cpp130 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 DASTTypeTraits.cpp157 else if (const TypeLoc *TL = get<TypeLoc>()) in print()
186 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
H A DNestedNameSpecifier.cpp443 TypeLoc TL(Qualifier->getAsType(), TypeData); in getLocalSourceRange()
452 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { in getTypeLoc()
455 return TypeLoc(); in getTypeLoc()
460 return TypeLoc(Qualifier->getAsType(), TypeData); in getTypeLoc()
564 TypeLoc TL, in Extend()
/freebsd-13.1/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.h51 class Class##TypeLoc;
58 class TypeLoc {
66 TypeLoc() = default;
80 TypeLoc& tl = t; in castAs()
92 TypeLoc& tl = t; in getAs()
219 friend bool operator==(const TypeLoc &LHS, const TypeLoc &RHS) {
223 friend bool operator!=(const TypeLoc &LHS, const TypeLoc &RHS) {
238 static TypeLoc getNextTypeLocImpl(TypeLoc TL);
239 static TypeLoc IgnoreParensImpl(TypeLoc TL);
265 friend class TypeLoc;
[all …]
H A DASTTypeTraits.h199 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 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.h234 bool TraverseTypeLoc(TypeLoc TL);
414 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
419 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); }
420 bool VisitTypeLoc(TypeLoc TL) { return true; }
435 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
437 TRY_TO(Visit##CLASS##TypeLoc(TL)); \
440 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
634 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) {
642 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
2546 TypeLoc TL = S->getCallOperator()->getTypeSourceInfo()->getTypeLoc();
[all …]
/freebsd-13.1/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()
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 DTypeLocBuilder.h64 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()
/freebsd-13.1/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()
371 bool VisitTypeLoc(TypeLoc Loc) { in VisitTypeLoc()
373 TypeLoc ParentTypeLoc; in VisitTypeLoc()
424 TypeLoc TargetLoc = Loc; in VisitTypeLoc()
431 TypeLoc TargetLoc = Loc; in VisitTypeLoc()
494 const TypeLoc *getParentTypeLoc(TypeLoc Loc) const { in getParentTypeLoc()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp129 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);
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()
1414 } else if (NodeMatch.canConvertTo<TypeLoc>()) { in addDynamicMatcher()
[all …]
H A DASTMatchersInternal.cpp773 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
1003 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
1004 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
1008 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
1009 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.h32 class TypeLoc; variable
107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
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.h759 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>;
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)
1884 TypeLoc NextNode = (Node.*TraverseFunction)();
[all …]
H A DASTMatchers.h144 using TypeLocMatcher = internal::Matcher<TypeLoc>;
291 TypeLoc), in AST_POLYMORPHIC_MATCHER_REGEX() argument
2705 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
3492 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
3493 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
3509 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
3510 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
3949 internal::Matcher<TypeLoc>, Inner) { in AST_POLYMORPHIC_MATCHER_P() argument
6330 AST_MATCHER_FUNCTION_P_OVERLOAD(internal::BindableMatcher<TypeLoc>, loc,
6332 return internal::BindableMatcher<TypeLoc>(
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h23 class TypeLoc; variable
206 void AddTypeLoc(TypeLoc TL);
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp60 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc(); in VisitBinaryOperator()
H A DTransGCAttrs.cpp63 TypeLoc TL = TInfo->getTypeLoc(); in lookForAttribute()
242 TypeLoc TL = TInfo->getTypeLoc(); in checkAllAtProps()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/
H A DEmptyNodeIntrospection.inc.in36 clang::TypeLoc const&) {
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/
H A DNodeIntrospection.h95 NodeLocationAccessors GetLocations(clang::TypeLoc const &);
/freebsd-13.1/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()

123