Home
last modified time | relevance | path

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

123

/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
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) { \
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 …]
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()
DASTTypeTraits.cpp157 else if (const TypeLoc *TL = get<TypeLoc>()) in print()
186 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
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()
DParentMapContext.cpp326 template <> DynTypedNode createDynTypedNode(const TypeLoc &Node) { in createDynTypedNode()
420 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
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()
DTypeLoc.h51 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 …]
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> {};
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)
DNestedNameSpecifier.h38 class TypeLoc; variable
336 TypeLoc getTypeLoc() const;
403 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
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) {
641 case TypeLoc::CLASS: \
642 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
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()
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-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
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()
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 …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/ASTMatchers/
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);
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 …]
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-12-stable/contrib/llvm-project/clang/lib/Index/
DIndexingContext.h32 class TypeLoc; variable
107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
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, \
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>;
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 …]
DASTMatchers.h144 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
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>>
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Serialization/
DASTRecordWriter.h23 class TypeLoc; variable
206 void AddTypeLoc(TypeLoc TL);
/freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/
DTransARCAssign.cpp60 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc(); in VisitBinaryOperator()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/
DEmptyNodeIntrospection.inc.in36 clang::TypeLoc const&) {
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/
DNodeIntrospection.h95 NodeLocationAccessors GetLocations(clang::TypeLoc const &);
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
DRangeSelector.cpp232 if (const auto *T = Node.get<TypeLoc>()) { in name()
233 TypeLoc Loc = *T; in name()

123