Home
last modified time | relevance | path

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

1234

/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()
DNestedNameSpecifier.cpp429 TypeLoc TL(Qualifier->getAsType(), TypeData); in getLocalSourceRange()
438 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { in getTypeLoc()
446 return TypeLoc(Qualifier->getAsType(), TypeData); in getTypeLoc()
551 TypeLoc TL, in Extend()
DComment.cpp238 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); in fill()
294 TypeLoc TL = MaybeFunctionTSI->getTypeLoc().getUnqualifiedLoc(); in fill()
DCMakeLists.txt60 TypeLoc.cpp
/external/clang/include/clang/AST/
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 …]
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()
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)
DNestedNameSpecifier.h31 class TypeLoc; variable
319 TypeLoc getTypeLoc() const;
389 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
DRecursiveASTVisitor.h199 bool TraverseTypeLoc(TypeLoc TL);
431 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
436 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); }
437 bool VisitTypeLoc(TypeLoc TL) { return true; }
452 bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
454 TRY_TO(Visit##CLASS##TypeLoc(TL)); \
457 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }
647 bool RecursiveASTVisitor<Derived>::TraverseTypeLoc(TypeLoc TL) {
654 case TypeLoc::CLASS: \
655 return getDerived().Traverse##CLASS##TypeLoc(TL.castAs<CLASS##TypeLoc>());
[all …]
/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/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/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h825 std::is_same<T, TypeLoc>::value ||
898 std::is_base_of<TypeLoc, T>::value || in matchesChildOf()
914 std::is_base_of<TypeLoc, T>::value || in matchesDescendantOf()
930 std::is_base_of<TypeLoc, T>::value, in matchesAncestorOf()
993 QualType, Type, TypeLoc, CXXCtorInitializer> AllNodeBaseTypes;
1007 TypeLoc, QualType> AdaptativeDefaultToTypes;
1501 class TypeLocTypeMatcher : public WrapperMatcherInterface<TypeLoc> {
1506 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder,
1545 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> &InnerMatcher,
1546 TypeLoc (T::*TraverseFunction)() const)
[all …]
DASTMatchers.h126 typedef internal::Matcher<TypeLoc> TypeLocMatcher;
210 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
231 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
256 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
1986 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
2365 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
2366 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
2382 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>,
2383 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
2630 AST_MATCHER_P(DeclaratorDecl, hasTypeLoc, internal::Matcher<TypeLoc>, Inner) { in AST_MATCHER_P() argument
[all …]
/external/clang/lib/Index/
DIndexingContext.h31 class TypeLoc; variable
90 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLParser.cpp299 LocTy TypeLoc = Lex.getLoc(); in ParseUnnamedType() local
311 if (ParseStructDefinition(TypeLoc, "", in ParseUnnamedType()
317 return Error(TypeLoc, "non-struct types may not be recursive"); in ParseUnnamedType()
1232 SMLoc TypeLoc = Lex.getLoc(); in ParseType() local
1301 return Error(TypeLoc, "void type only allowed for function results"); in ParseType()
1400 LocTy TypeLoc = Lex.getLoc(); in ParseArgumentList() local
1409 return Error(TypeLoc, "argument can not have void type"); in ParseArgumentList()
1417 return Error(TypeLoc, "invalid type for function argument"); in ParseArgumentList()
1419 ArgList.push_back(ArgInfo(TypeLoc, ArgTy, Attrs, Name)); in ParseArgumentList()
1429 TypeLoc = Lex.getLoc(); in ParseArgumentList()
[all …]
/external/clang/unittests/AST/
DSourceLocationTest.cpp202 class TemplateAngleBracketLocRangeVerifier : public RangeVerifier<TypeLoc> {
204 SourceRange getRange(const TypeLoc &Node) override { in getRange()
227 class UnaryTransformTypeLocParensRangeVerifier : public RangeVerifier<TypeLoc> {
229 SourceRange getRange(const TypeLoc &Node) override { in getRange()
DASTContextParentMapTest.cpp38 MatchVerifier<TypeLoc> Verifier; in TEST()
/external/clang/tools/libclang/
DCursorVisitor.h256 bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc);
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/
DELFAsmParser.cpp466 SMLoc TypeLoc; in ParseDirectiveType() local
468 TypeLoc = getLexer().getLoc(); in ParseDirectiveType()
482 return Error(TypeLoc, "unsupported attribute in '.type' directive"); in ParseDirectiveType()
/external/llvm/lib/AsmParser/
DLLParser.cpp356 LocTy TypeLoc = Lex.getLoc(); in ParseUnnamedType() local
365 if (ParseStructDefinition(TypeLoc, "", in ParseUnnamedType()
371 return Error(TypeLoc, "non-struct types may not be recursive"); in ParseUnnamedType()
1965 SMLoc TypeLoc = Lex.getLoc(); in ParseType() local
2032 return Error(TypeLoc, "void type only allowed for function results"); in ParseType()
2206 LocTy TypeLoc = Lex.getLoc(); in ParseArgumentList() local
2215 return Error(TypeLoc, "argument can not have void type"); in ParseArgumentList()
2223 return Error(TypeLoc, "invalid type for function argument"); in ParseArgumentList()
2226 ArgList.emplace_back(TypeLoc, ArgTy, AttributeSet::get(ArgTy->getContext(), in ParseArgumentList()
2238 TypeLoc = Lex.getLoc(); in ParseArgumentList()
[all …]
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTestTypeLocVisitor.cpp19 bool VisitTypeLoc(TypeLoc TypeLocation) { in VisitTypeLoc()
/external/clang/lib/ARCMigrate/
DTransARCAssign.cpp61 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc(); in VisitBinaryOperator()

1234