Home
last modified time | relevance | path

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

1234

/freebsd/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 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()
H A DParentMapContext.cpp336 template <> DynTypedNode createDynTypedNode(const TypeLoc &Node) { in createDynTypedNode()
435 bool TraverseTypeLoc(TypeLoc TypeLocNode) { in TraverseTypeLoc()
/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 DSemaPPC.cpp256 bool SemaPPC::CheckPPCMMAType(QualType Type, SourceLocation TypeLoc) { in CheckPPCMMAType() argument
266 Diag(TypeLoc, diag::err_ppc_invalid_use_mma_type); in CheckPPCMMAType()
/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()
170 TypeLoc getNextTypeLoc() const { in getNextTypeLoc()
177 TypeLoc IgnoreParens() const;
185 TypeLoc findExplicitQualifierLoc() const;
[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 …]
H A DTextNodeDumper.h184 void Visit(TypeLoc);
351 void VisitTypeLoc(TypeLoc TL);
/freebsd/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 …]
H A DASTMatchFinder.h220 std::vector<std::pair<TypeLocMatcher, MatchCallback *>> TypeLoc; member
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaPPC.h45 bool CheckPPCMMAType(QualType Type, SourceLocation TypeLoc);
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h26 class TypeLoc; variable
219 void AddTypeLoc(TypeLoc TL, LocSeq *Seq = nullptr);
/freebsd/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()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp225 if (const auto *T = Node.get<TypeLoc>()) { in name()
226 TypeLoc Loc = *T; in name()
H A DRewriteRule.cpp322 transformer::detail::rewriteDescendants(const TypeLoc &Node, RewriteRule Rule, in rewriteDescendants()
335 if (const auto *Node = DNode.get<TypeLoc>()) in rewriteDescendants()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h86 bool VisitTypeLoc(const TypeLoc Loc) { in VisitTypeLoc()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp1864 TypeLoc TyLoc = VD->getTypeSourceInfo()->getTypeLoc().getUnqualifiedLoc(); in getPointeeTypeText()
1865 TypeLoc PteTyLoc; in getPointeeTypeText()
1870 case TypeLoc::ConstantArray: in getPointeeTypeText()
1871 case TypeLoc::IncompleteArray: in getPointeeTypeText()
1872 case TypeLoc::VariableArray: in getPointeeTypeText()
1873 case TypeLoc::DependentSizedArray: in getPointeeTypeText()
1874 case TypeLoc::Decayed: in getPointeeTypeText()
1879 case TypeLoc::Pointer: in getPointeeTypeText()

1234