/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | TypeLocVisitor.h | 1 //===--- TypeLocVisitor.h - Visitor for TypeLoc subclasses ------*- C++ -*-===// 15 #include "clang/AST/TypeLoc.h" 27 RetTy Visit(TypeLoc TyLoc) { 31 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); 41 case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc); 48 RetTy Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 53 RetTy VisitTypeLoc(TypeLoc TyLo [all...] |
H A D | TypeLoc.h | 1 //===- TypeLoc.h - Type Source Info Wrapper ---------------------*- C++ -*-===// 10 /// Defines the clang::TypeLoc interface and its subclasses. 51 class Class##TypeLoc; 56 /// A client should use the TypeLoc subclasses through castAs()/getAs() 58 class TypeLoc { class in namespace:clang 66 TypeLoc() = default; 67 TypeLoc(QualType ty, void *opaqueData) function in class:clang::TypeLoc 69 TypeLoc(const Type *ty, void *opaqueData) function in class:clang::TypeLoc 72 /// Convert to the specified TypeLoc type, asserting that this TypeLoc 232 isKind(const TypeLoc&) argument [all...] |
H A D | ASTTypeTraits.h | 22 #include "clang/AST/TypeLoc.h" 198 KIND_TO_KIND_ID(TypeLoc) 301 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) { 302 auto TLA = getUnchecked<TypeLoc>(); 303 auto TLB = Other.getUnchecked<TypeLoc>(); 333 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) 334 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>(); 362 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(Val.NodeKind)) { 363 auto TL = Val.getUnchecked<TypeLoc>(); [all...] |
H A D | NestedNameSpecifier.h | 37 class TypeLoc; 335 TypeLoc getTypeLoc() const; 399 /// \param TL The TypeLoc that describes the type preceding the '::'. 402 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
|
H A D | RecursiveASTVisitor.h | 40 #include "clang/AST/TypeLoc.h" 229 /// Traverse*TypeLoc() based on the argument type's getTypeClass() property. 233 bool TraverseTypeLoc(TypeLoc TL); 388 // FIXME: revamp to take TypeLoc's rather than Types. 411 // Declare Traverse*() for all concrete TypeLoc classes. 413 #define TYPELOC(CLASS, BASE) bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL); 417 // Define WalkUpFrom*() and empty Visit*() for all TypeLoc classes. 418 bool WalkUpFromTypeLoc(TypeLoc TL) { return getDerived().VisitTypeLoc(TL); } 419 bool VisitTypeLoc(TypeLoc T [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | TypeLoc.cpp | 1 //===- TypeLoc.cpp - Type Source Info Wrapper -----------------------------===// 9 // This file defines the TypeLoc subclasses implementations. 13 #include "clang/AST/TypeLoc.h" 36 // TypeLoc Implementation 45 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \ 53 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { 64 unsigned Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLo [all...] |
H A D | Comment.cpp | 130 static TypeLoc lookThroughTypedefOrTypeAliasLocs(TypeLoc &SrcTL) { 131 TypeLoc TL = SrcTL.IgnoreParens(); 158 static bool getFunctionTypeLoc(TypeLoc TL, FunctionTypeLoc &ResFTL) { 159 TypeLoc PrevTL; 182 TypeLoc TL = MaybeFunctionTSI->getTypeLoc().getUnqualifiedLoc(); 309 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); 333 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc(); 354 TypeLoc TL = TSI->getTypeLoc().getUnqualifiedLoc();
|
H A D | ASTTypeTraits.cpp | 29 { NKI_None, "TypeLoc" }, 143 else if (const TypeLoc *TL = get<TypeLoc>()) 172 if (const TypeLoc *TL = get<TypeLoc>())
|
H A D | ParentMapContext.cpp | 199 template <> DynTypedNode createDynTypedNode(const TypeLoc &Node) { 293 bool TraverseTypeLoc(TypeLoc TypeLocNode) {
|
H A D | NestedNameSpecifier.cpp | 23 #include "clang/AST/TypeLoc.h" 375 // The "void*" that points at the TypeLoc data. 376 // Note: the 'template' keyword is part of the TypeLoc. 438 // The "void*" that points at the TypeLoc data. 439 // Note: the 'template' keyword is part of the TypeLoc. 441 TypeLoc TL(Qualifier->getAsType(), TypeData); 450 TypeLoc NestedNameSpecifierLoc::getTypeLoc() const { 453 return TypeLoc(); 455 // The "void*" that points at the TypeLoc data. 458 return TypeLoc(Qualifie [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | TypeLocBuilder.cpp | 18 void TypeLocBuilder::pushFullCopy(TypeLoc L) { 22 SmallVector<TypeLoc, 4> TypeLocs; 23 TypeLoc CurTL = L; 30 TypeLoc CurTL = TypeLocs[e-i-1]; 34 case TypeLoc::CLASS: { \ 35 CLASS##TypeLoc NewTL = push<class CLASS##TypeLoc>(CurTL.getType()); \ 62 TypeLoc TypeLocBuilder::pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment) { 64 QualType TLast = TypeLoc(T, nullptr).getNextTypeLoc().getType(); 81 // Because we're adding elements to the TypeLoc backward [all...] |
H A D | TypeLocBuilder.h | 18 #include "clang/AST/TypeLoc.h" 62 /// Pushes a copy of the given TypeLoc onto this builder. The builder 64 void pushFullCopy(TypeLoc L); 66 /// Pushes space for a typespec TypeLoc. Invalidates any TypeLocs 91 /// Pushes space for a new TypeLoc of the given type. Invalidates 94 TyLocType Loc = TypeLoc(T, nullptr).castAs<TyLocType>(); 113 /// returns a \c TypeLoc referring into the AST context. 114 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { 122 return TypeLoc(T, Mem); 127 TypeLoc pushImp [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRLocFinder.cpp | 110 SourceLocation StartLocationForType(TypeLoc TL) { 123 SourceLocation EndLocationForType(TypeLoc TL) { 125 while (TL.getTypeLocClass() == TypeLoc::Elaborated || 126 TL.getTypeLocClass() == TypeLoc::Qualified) 132 if (TL.getTypeLocClass() == TypeLoc::TemplateSpecialization) { 140 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { 142 while (TL.getTypeLocClass() == TypeLoc::Qualified) 283 // TypeLoc. 353 bool VisitTypeLoc(TypeLoc Loc) { 355 TypeLoc ParentTypeLo [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransARCAssign.cpp | 60 TypeLoc TLoc = var->getTypeSourceInfo()->getTypeLoc();
|
H A D | TransGCAttrs.cpp | 63 TypeLoc TL = TInfo->getTypeLoc(); 242 TypeLoc TL = TInfo->getTypeLoc();
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexingContext.h | 32 class TypeLoc; 107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/ |
H A D | ASTMatchFinder.cpp | 60 // nodes (\c Stmt and \c Decl, but not \c QualType or \c TypeLoc). 61 // For \c QualType and \c TypeLoc it is possible to implement 127 else if (const TypeLoc *T = DynNode.get<TypeLoc>()) 194 // We assume that the TypeLoc, contained QualType and contained Type all are 196 bool TraverseTypeLoc(TypeLoc TypeLocNode) { 206 // The TypeLoc is matched inside traverse. 293 bool baseTraverse(TypeLoc TypeLocNode) { 446 bool TraverseTypeLoc(TypeLoc TypeNode); 556 } else if (auto *N = Node.get<TypeLoc>()) { [all...] |
H A D | ASTMatchersInternal.cpp | 744 const internal::VariadicAllOfMatcher<TypeLoc> typeLoc; 958 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 959 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>> 963 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, 964 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>>
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | RecursiveSymbolVisitor.h | 86 bool VisitTypeLoc(const TypeLoc Loc) {
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | ASTRecordWriter.h | 23 class TypeLoc; 205 void AddTypeLoc(TypeLoc TL);
|
H A D | ASTRecordReader.h | 162 void readTypeLoc(TypeLoc TL);
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchersMacros.h | 359 // FIXME: add a matcher for TypeLoc derived classes using its custom casting 406 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \ 411 TypeLoc, \ 420 TypeLoc, \ 431 static TypeLoc (T::*value())() const { return &T::FunctionName##Loc; } \ 435 TypeLoc, \
|
H A D | ASTMatchersInternal.h | 49 #include "clang/AST/TypeLoc.h" 945 std::is_same<T, TypeLoc>::value || 1020 std::is_base_of<TypeLoc, T>::value || 1036 std::is_base_of<TypeLoc, T>::value || 1052 std::is_base_of<TypeLoc, T>::value, 1115 Type, TypeLoc, CXXCtorInitializer>; 1129 TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, TypeLoc, 1678 class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> { 1685 bool matches(const TypeLoc &Node, ASTMatchFinder *Finder, 1726 explicit TypeLocTraverseMatcher(const Matcher<TypeLoc> [all...] |
H A D | ASTMatchers.h | 71 #include "clang/AST/TypeLoc.h" 144 using TypeLocMatcher = internal::Matcher<TypeLoc>; 239 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 241 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { 260 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 262 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { 285 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 288 TypeLoc), 2576 extern const internal::VariadicAllOfMatcher<TypeLoc> typeLoc; 3137 internal::TypeList<Decl, NestedNameSpecifierLoc, Stmt, TypeLoc>, [all...] |
H A D | ASTMatchFinder.h | 210 std::vector<std::pair<TypeLocMatcher, MatchCallback *>> TypeLoc; member in struct:clang::ast_matchers::MatchFinder::MatchersByType
|