Home
last modified time | relevance | path

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

12345678

/external/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.cpp146 else if (const TypeLoc *TL = get<TypeLoc>()) in print()
175 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
/external/clang/lib/AST/
DTypeLoc.cpp33 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
40 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl()
50 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
58 unsigned TypeLoc::getLocalAlignmentForType(QualType Ty) { in getLocalAlignmentForType()
60 return TypeAligner().Visit(TypeLoc(Ty, nullptr)); in getLocalAlignmentForType()
68 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
76 unsigned TypeLoc::getFullDataSizeForType(QualType Ty) { in getFullDataSizeForType()
78 TypeLoc TyLoc(Ty, nullptr); in getFullDataSizeForType()
92 class NextLoc : public TypeLocVisitor<NextLoc, TypeLoc> {
96 TypeLoc Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
[all …]
DASTTypeTraits.cpp118 else if (const TypeLoc *TL = get<TypeLoc>()) in print()
144 if (const TypeLoc *TL = get<TypeLoc>()) in getSourceRange()
/external/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.h196 KIND_TO_KIND_ID(TypeLoc)
298 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) {
299 auto TLA = getUnchecked<TypeLoc>();
300 auto TLB = Other.getUnchecked<TypeLoc>();
330 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind))
331 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
359 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(Val.NodeKind)) {
360 auto TL = Val.getUnchecked<TypeLoc>();
460 NestedNameSpecifierLoc, QualType, TypeLoc>
515 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)
/external/clang/include/clang/AST/
DTypeLocVisitor.h29 RetTy Visit(TypeLoc TyLoc) { in Visit()
33 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); in Visit()
43 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); in Visit()
50 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
55 RetTy VisitTypeLoc(TypeLoc TyLoc) { return RetTy(); } in VisitTypeLoc()
DTypeLoc.h33 class Class##TypeLoc;
40 class TypeLoc {
56 TypeLoc& tl = t; in castAs()
68 TypeLoc& tl = t; in getAs()
84 TypeLoc() : Ty(nullptr), Data(nullptr) { } in TypeLoc() function
85 TypeLoc(QualType ty, void *opaqueData) in TypeLoc() function
87 TypeLoc(const Type *ty, void *opaqueData) in TypeLoc() function
145 TypeLoc getNextTypeLoc() const { in getNextTypeLoc()
152 TypeLoc IgnoreParens() const;
160 TypeLoc findExplicitQualifierLoc() const;
[all …]
DASTTypeTraits.h181 KIND_TO_KIND_ID(TypeLoc)
280 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) {
281 auto TLA = getUnchecked<TypeLoc>();
282 auto TLB = Other.getUnchecked<TypeLoc>();
312 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind))
313 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
341 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(Val.NodeKind)) {
342 auto TL = Val.getUnchecked<TypeLoc>();
443 TypeLoc> Storage;
484 TypeLoc, void> : public ValueConverter<TypeLoc> {};
DTypeLocNodes.def1 //===-- TypeLocNodes.def - Metadata about TypeLoc wrappers ------*- C++ -*-===//
10 // This file defines the TypeLoc info database. Each node is
15 // TYPELOC(Class, Base) - A TypeLoc subclass. If UNQUAL_TYPELOC is
32 TYPELOC(Qualified, TypeLoc)
/external/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()
/external/clang/lib/Sema/
DTypeLocBuilder.cpp19 void TypeLocBuilder::pushFullCopy(TypeLoc L) { in pushFullCopy()
23 SmallVector<TypeLoc, 4> TypeLocs; in pushFullCopy()
24 TypeLoc CurTL = L; in pushFullCopy()
31 TypeLoc CurTL = TypeLocs[e-i-1]; in pushFullCopy()
35 case TypeLoc::CLASS: { \ in pushFullCopy()
36 CLASS##TypeLoc NewTL = push<class CLASS##TypeLoc>(CurTL.getType()); \ in pushFullCopy()
63 TypeLoc TypeLocBuilder::pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment) { in pushImpl()
65 QualType TLast = TypeLoc(T, nullptr).getNextTypeLoc().getType(); in pushImpl()
160 assert(Capacity - Index == TypeLoc::getFullDataSizeForType(T) && in pushImpl()
DTypeLocBuilder.h67 void pushFullCopy(TypeLoc L);
97 TyLocType Loc = TypeLoc(T, nullptr).castAs<TyLocType>(); in push()
117 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext()
125 return TypeLoc(T, Mem); in getTypeLocInContext()
130 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment);
141 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc()
145 return TypeLoc(T, &Buffer[Index]); in getTemporaryTypeLoc()
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp206 TEST(TypeLoc, IntRange) { in TEST() argument
207 RangeVerifier<TypeLoc> Verifier; in TEST()
212 TEST(TypeLoc, LongRange) { in TEST() argument
213 RangeVerifier<TypeLoc> Verifier; in TEST()
218 TEST(TypeLoc, LongDoubleRange) { in TEST() argument
219 RangeVerifier<TypeLoc> Verifier; in TEST()
224 TEST(TypeLoc, DoubleLongRange) { in TEST() argument
225 RangeVerifier<TypeLoc> Verifier; in TEST()
230 TEST(TypeLoc, LongIntRange) { in TEST() argument
231 RangeVerifier<TypeLoc> Verifier; in TEST()
[all …]
/external/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()
353 bool VisitTypeLoc(TypeLoc Loc) { in VisitTypeLoc()
355 TypeLoc ParentTypeLoc; in VisitTypeLoc()
366 if (const auto *TL = Parents[0].get<TypeLoc>()) in VisitTypeLoc()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DAvoidCArraysCheck.cpp17 AST_MATCHER(clang::TypeLoc, hasValidBeginLoc) { in AST_MATCHER() argument
21 AST_MATCHER_P(clang::TypeLoc, hasType, in AST_MATCHER_P() argument
58 const auto *ArrayType = Result.Nodes.getNodeAs<TypeLoc>("typeloc"); in check()
DUseAutoCheck.cpp389 TypeLoc Loc = FirstDecl->getTypeSourceInfo()->getTypeLoc(); in replaceExpr()
391 while (Loc.getTypeLocClass() == TypeLoc::Pointer || in replaceExpr()
392 Loc.getTypeLocClass() == TypeLoc::Qualified) in replaceExpr()
395 while (Loc.getTypeLocClass() == TypeLoc::LValueReference || in replaceExpr()
396 Loc.getTypeLocClass() == TypeLoc::RValueReference || in replaceExpr()
397 Loc.getTypeLocClass() == TypeLoc::Qualified) { in replaceExpr()
/external/llvm-project/clang-tools-extra/clangd/
DDumpAST.cpp126 std::string getKind(const TypeLoc &TL) { in getKind()
128 if (TL.getTypeLocClass() == TypeLoc::Qualified) in getKind()
255 std::string getDetail(const TypeLoc &TL) { in getDetail()
288 if (TypeLoc TL = CCI->getBaseClassLoc()) in getDetail()
328 std::string getArcana(const TypeLoc &TL) { in getArcana()
343 bool TraverseTypeLoc(TypeLoc TL) { in TraverseTypeLoc()
414 else if (const auto *TL = N.get<TypeLoc>()) in dumpAST()
415 V.TraverseTypeLoc(*const_cast<TypeLoc *>(TL)); in dumpAST()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp127 else if (const TypeLoc *T = DynNode.get<TypeLoc>()) in findMatch()
172 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
228 bool baseTraverse(TypeLoc TypeLocNode) { in baseTraverse()
371 bool TraverseTypeLoc(TypeLoc TypeNode);
473 } else if (auto *N = Node.get<TypeLoc>()) { in match()
584 void matchDispatch(const TypeLoc *Node) { in matchDispatch()
585 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch()
836 bool MatchASTVisitor::TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
933 Matchers.TypeLoc.emplace_back(NodeMatch, Action); in addMatcher()
954 } else if (NodeMatch.canConvertTo<TypeLoc>()) { in addDynamicMatcher()
[all …]
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp34 SourceLocation startLocationForType(TypeLoc TLoc) { in startLocationForType()
37 if (TLoc.getTypeLocClass() == TypeLoc::Elaborated) { in startLocationForType()
47 SourceLocation endLocationForType(TypeLoc TLoc) { in endLocationForType()
49 while (TLoc.getTypeLocClass() == TypeLoc::Elaborated || in endLocationForType()
50 TLoc.getTypeLocClass() == TypeLoc::Qualified) in endLocationForType()
56 if (TLoc.getTypeLocClass() == TypeLoc::TemplateSpecialization) in endLocationForType()
327 bool isTemplateParameter(TypeLoc Type) { in isTemplateParameter()
329 if (Type.getTypeLocClass() == TypeLoc::SubstTemplateTypeParm) in isTemplateParameter()
560 } else if (const auto *TLoc = Result.Nodes.getNodeAs<TypeLoc>("type")) { in run()
564 TypeLoc Loc = *TLoc; in run()
[all …]
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchFinder.cpp129 else if (const TypeLoc *T = DynNode.get<TypeLoc>()) in findMatch()
204 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
304 bool baseTraverse(TypeLoc TypeLocNode) { in baseTraverse()
460 bool TraverseTypeLoc(TypeLoc TypeNode);
582 } else if (auto *N = Node.get<TypeLoc>()) { in match()
749 void matchDispatch(const TypeLoc *Node) { in matchDispatch()
750 matchWithoutFilter(*Node, Matchers->TypeLoc); in matchDispatch()
1113 bool MatchASTVisitor::TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
1234 Matchers.TypeLoc.emplace_back(NodeMatch, Action); in addMatcher()
1267 } else if (NodeMatch.canConvertTo<TypeLoc>()) { in addDynamicMatcher()
[all …]

12345678