Home
last modified time | relevance | path

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

1234

/src/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) { \
74 unsigned TypeLoc::getLocalAlignmentForType(QualType Ty) { in getLocalAlignmentForType()
76 return TypeAligner().Visit(TypeLoc(Ty, nullptr)); in getLocalAlignmentForType()
85 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
94 unsigned TypeLoc::getFullDataSizeForType(QualType Ty) { in getFullDataSizeForType()
96 TypeLoc TyLoc(Ty, nullptr); in getFullDataSizeForType()
111 class NextLoc : public TypeLocVisitor<NextLoc, TypeLoc> {
115 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
[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()
231 else if (const TypeLoc *TL = get<TypeLoc>()) in dump()
242 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()
H A DASTDumper.cpp206 LLVM_DUMP_METHOD void TypeLoc::dump() const { in dump()
210 LLVM_DUMP_METHOD void TypeLoc::dump(llvm::raw_ostream &OS, in dump()
/src/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()
58 auto NewTL = push<class CLASS##TypeLoc>(CurTL.getType()); \ in pushTrivial()
[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()
/src/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;
68 TypeLoc(QualType ty, void *opaqueData) in TypeLoc() function
70 TypeLoc(const Type *ty, void *opaqueData) in TypeLoc() function
81 TypeLoc& tl = t; in castAs()
93 TypeLoc& tl = t; in getAs()
170 TypeLoc getNextTypeLoc() const { in getNextTypeLoc()
177 TypeLoc IgnoreParens() const;
185 TypeLoc findExplicitQualifierLoc() const;
[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)
326 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(NodeKind)) {
327 auto TLA = getUnchecked<TypeLoc>();
328 auto TLB = Other.getUnchecked<TypeLoc>();
358 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(NodeKind))
359 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
387 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(Val.NodeKind)) {
[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.h224 bool TraverseTypeLoc(TypeLoc TL);
411 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
416 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); }
417 bool VisitTypeLoc(TypeLoc TL) { return true; }
432 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
434 TRY_TO(Visit##CLASS##TypeLoc(TL)); \
437 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
714 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) {
721 case TypeLoc::CLASS: \
722 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
[all …]
/src/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()
132 if (TL.getTypeLocClass() == TypeLoc::TemplateSpecialization) { in EndLocationForType()
140 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { in GetNestedNameForType()
142 while (TL.getTypeLocClass() == TypeLoc::Qualified) in GetNestedNameForType()
372 bool VisitTypeLoc(TypeLoc Loc) { in VisitTypeLoc()
374 TypeLoc ParentTypeLoc; in VisitTypeLoc()
385 if (const auto *TL = Parents[0].get<TypeLoc>()) in VisitTypeLoc()
[all …]
/src/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);
559 TypeLoc TL = LE->getCallOperator()->getTypeSourceInfo()->getTypeLoc(); in dataTraverseNode()
718 } else if (auto *N = Node.get<TypeLoc>()) { in match()
785 const QualType *, const TypeLoc *, const NestedNameSpecifier *, \
908 } else if (const auto *TL = State.getNode<TypeLoc>()) { in dumpNodeFromState()
1095 void matchDispatch(const TypeLoc *Node) { in matchDispatch()
1096 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch()
[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>>
/src/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.h32 class TypeLoc; variable
105 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/src/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h146 using TypeLocMatcher = internal::Matcher<TypeLoc>;
248 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
269 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
295 TypeLoc), in AST_POLYMORPHIC_MATCHER_REGEX() argument
317 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
2797 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
3584 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
3585 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
3601 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
3602 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
[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.h744 std::is_base_of<TypeLoc, T>::value ||
759 std::is_base_of<TypeLoc, T>::value ||
775 std::is_base_of<TypeLoc, T>::value ||
1166 std::is_same<T, TypeLoc>::value ||
1181 Type, TypeLoc, CXXCtorInitializer, Attr>;
1207 TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, TypeLoc,
1798 class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> {
1805 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder,
1846 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> &InnerMatcher,
1847 TypeLoc (T::*TraverseFunction)() const)
[all …]
/src/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaPPC.h45 bool CheckPPCMMAType(QualType Type, SourceLocation TypeLoc);
/src/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h26 class TypeLoc; variable
219 void AddTypeLoc(TypeLoc TL, LocSeq *Seq = nullptr);
/src/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()
/src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h86 bool VisitTypeLoc(const TypeLoc Loc) { in VisitTypeLoc()

1234