Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTypeLoc.cpp47 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
55 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl()
66 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
75 unsigned TypeLoc::getLocalAlignmentForType(QualType Ty) { in getLocalAlignmentForType()
77 return TypeAligner().Visit(TypeLoc(Ty, nullptr)); in getLocalAlignmentForType()
86 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
95 unsigned TypeLoc::getFullDataSizeForType(QualType Ty) { in getFullDataSizeForType()
97 TypeLoc TyLoc(Ty, nullptr); in getFullDataSizeForType()
112 class NextLoc : public TypeLocVisitor<NextLoc, TypeLoc> {
116 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
[all …]
H A DDynamicRecursiveASTVisitor.cpp119 bool TraverseTypeLoc(TypeLoc TL) { return Visitor.TraverseTypeLoc(TL); } in TraverseTypeLoc()
206 bool VisitTypeLoc(TypeLoc TL) { return Visitor.VisitTypeLoc(TL); } in VisitTypeLoc()
258 bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
259 return Visitor.Traverse##CLASS##TypeLoc(TL); \
264 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
265 return Visitor.Visit##CLASS##TypeLoc(TL); \
318 FORWARD_TO_BASE_EXACT(TraverseTypeLoc, TypeLoc) in FORWARD_TO_BASE_EXACT()
363 FORWARD_TO_BASE_EXACT(Traverse##CLASS##TypeLoc, CLASS##TypeLoc)
367 FORWARD_TO_BASE_EXACT(WalkUpFrom##CLASS##TypeLoc, CLASS##TypeLoc)
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()
361 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill()
H A DNestedNameSpecifier.cpp431 TypeLoc TL(Qualifier->getAsType(), TypeData); in getLocalSourceRange()
440 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { in getTypeLoc()
442 return TypeLoc(); in getTypeLoc()
447 return TypeLoc(Qualifier->getAsType(), TypeData); in getTypeLoc()
549 void NestedNameSpecifierLocBuilder::Extend(ASTContext &Context, TypeLoc TL, in Extend()
H A DASTDumper.cpp205 LLVM_DUMP_METHOD void TypeLoc::dump() const { in dump()
209 LLVM_DUMP_METHOD void TypeLoc::dump(llvm::raw_ostream &OS, in dump()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DFixitUtil.cpp32 TypeLoc TyLoc = VD->getTypeSourceInfo()->getTypeLoc().getUnqualifiedLoc(); in getPointeeTypeText()
33 TypeLoc PteTyLoc; in getPointeeTypeText()
38 case TypeLoc::ConstantArray: in getPointeeTypeText()
39 case TypeLoc::IncompleteArray: in getPointeeTypeText()
40 case TypeLoc::VariableArray: in getPointeeTypeText()
41 case TypeLoc::DependentSizedArray: in getPointeeTypeText()
42 case TypeLoc::Decayed: in getPointeeTypeText()
47 case TypeLoc::Pointer: in getPointeeTypeText()
113 TypeLoc TyLoc = VD->getTypeSourceInfo()->getTypeLoc().getUnqualifiedLoc(); in getPointee2TypeText()
114 TypeLoc PtrTyLoc; in getPointee2TypeText()
[all …]
/freebsd/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()
/freebsd/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()
171 TypeLoc getNextTypeLoc() const { in getNextTypeLoc()
178 TypeLoc IgnoreParens() const;
186 TypeLoc findExplicitQualifierLoc() const;
[all …]
H A DDynamicRecursiveASTVisitor.h191 virtual bool TraverseTypeLoc(TypeLoc TL);
222 virtual bool VisitTypeLoc(TypeLoc TL) { return true; } in VisitTypeLoc()
228 bool WalkUpFromTypeLoc(TypeLoc TL) { return VisitTypeLoc(TL); } in WalkUpFromTypeLoc()
286 virtual bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
290 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL); \
291 virtual bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
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
341 TypeLoc getTypeLoc() const;
406 void Extend(ASTContext &Context, TypeLoc TL, SourceLocation ColonColonLoc);
H A DRecursiveASTVisitor.h226 bool TraverseTypeLoc(TypeLoc TL);
413 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
418 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); }
419 bool VisitTypeLoc(TypeLoc TL) { return true; }
434 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
436 TRY_TO(Visit##CLASS##TypeLoc(TL)); \
439 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
718 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) {
725 case TypeLoc::CLASS: \
726 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp109 SourceLocation StartLocationForType(TypeLoc TL) { in StartLocationForType()
122 SourceLocation EndLocationForType(TypeLoc TL) { in EndLocationForType()
124 while (TL.getTypeLocClass() == TypeLoc::Elaborated || in EndLocationForType()
125 TL.getTypeLocClass() == TypeLoc::Qualified) in EndLocationForType()
131 if (TL.getTypeLocClass() == TypeLoc::TemplateSpecialization) { in EndLocationForType()
139 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { in GetNestedNameForType()
141 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/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()
346 bool baseTraverse(TypeLoc TypeLocNode) { in baseTraverse()
505 bool TraverseTypeLoc(TypeLoc TypeNode);
560 TypeLoc TL = LE->getCallOperator()->getTypeSourceInfo()->getTypeLoc(); in dataTraverseNode()
720 } else if (auto *N = Node.get<TypeLoc>()) { in match()
787 const QualType *, const TypeLoc *, const NestedNameSpecifier *, \
910 } else if (const auto *TL = State.getNode<TypeLoc>()) { in dumpNodeFromState()
1097 void matchDispatch(const TypeLoc *Node) { in matchDispatch()
1098 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch()
[all …]
H A DASTMatchersInternal.cpp800 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
802 const internal::VariadicDynCastAllOfMatcher<TypeLoc, QualifiedTypeLoc>
804 const internal::VariadicDynCastAllOfMatcher<TypeLoc, PointerTypeLoc>
806 const internal::VariadicDynCastAllOfMatcher<TypeLoc, ReferenceTypeLoc>
808 const internal::VariadicDynCastAllOfMatcher<TypeLoc,
811 const internal::VariadicDynCastAllOfMatcher<TypeLoc, ElaboratedTypeLoc>
1060 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
1061 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
1065 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
1066 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.h33 class TypeLoc; variable
111 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h148 using TypeLocMatcher = internal::Matcher<TypeLoc>;
250 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
271 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
297 TypeLoc), in AST_POLYMORPHIC_MATCHER_REGEX() argument
319 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
2867 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
3677 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
3678 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
3694 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>,
3695 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc, Attr>>
[all …]
H A DASTMatchersMacros.h409 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \
414 TypeLoc, \
423 TypeLoc, \
434 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \
438 TypeLoc, \
H A DASTMatchersInternal.h751 std::is_base_of<TypeLoc, T>::value ||
766 std::is_base_of<TypeLoc, T>::value ||
782 std::is_base_of<TypeLoc, T>::value ||
1167 std::is_same<T, TypeLoc>::value ||
1182 Type, TypeLoc, CXXCtorInitializer, Attr>;
1208 TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, TypeLoc,
1800 class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> {
1807 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder,
1847 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> &InnerMatcher,
1848 TypeLoc (T::*TraverseFunction)() const)
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaPPC.h46 bool CheckPPCMMAType(QualType Type, SourceLocation TypeLoc);
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h27 class TypeLoc; variable
247 void AddTypeLoc(TypeLoc TL);
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h86 bool VisitTypeLoc(const TypeLoc Loc) { in VisitTypeLoc()

1234