|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/TypeNodes.inc 25 TYPE(Auto, DeducedType)
References
include/llvm/ADT/FoldingSet.h 221 static void Profile(const T &X, FoldingSetNodeID &ID) {
224 static void Profile(T &X, FoldingSetNodeID &ID) {
232 static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
240 static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
250 : public DefaultFoldingSetTrait<T> {};
369 FoldingSetTrait<T>::Profile(X, TempID);
375 FoldingSetTrait<T>::Profile(X, TempID);
410 using iterator = FoldingSetIterator<T>;
415 using const_iterator = FoldingSetIterator<const T>;
420 using bucket_iterator = FoldingSetBucketIterator<T>;
432 bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
437 T *GetOrInsertNode(T *N) {
437 T *GetOrInsertNode(T *N) {
444 T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
451 void InsertNode(T *N, void *InsertPos) {
457 void InsertNode(T *N) {
473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
474 using Super = FoldingSetImpl<T>;
480 T *TN = static_cast<T *>(N);
481 FoldingSetTrait<T>::Profile(*TN, ID);
488 T *TN = static_cast<T *>(N);
489 return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
495 T *TN = static_cast<T *>(N);
496 return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
218 static typename cast_retty<To, From>::ret_type doit(From &Val) {
219 return cast_convert_val<To, SimpleFrom,
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
248 typename cast_retty<X, const Y>::ret_type>::type
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
331 typename cast_retty<X, const Y>::ret_type>::type
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
367 dyn_cast_or_null(Y *Val) {
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTContext.h 223 mutable llvm::FoldingSet<AutoType> AutoTypes;
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
251 const T *get() const {
252 return BaseConverter<T>::get(NodeKind, Storage.buffer);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
395 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
399 static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
401 return *cast<T>(static_cast<const BaseT *>(
479 : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/JSONNodeDumper.h 214 void VisitAutoType(const AutoType *AT);
tools/clang/include/clang/AST/RecursiveASTVisitor.h 1037 DEF_TRAVERSE_TYPE(AutoType, { TRY_TO(TraverseType(T->getDeducedType())); })
1281 TRY_TO(TraverseType(TL.getTypePtr()->getDeducedType()));
tools/clang/include/clang/AST/TextNodeDumper.h 291 void VisitAutoType(const AutoType *T);
tools/clang/include/clang/AST/Type.h 2222 AutoType *getContainedAutoType() const {
2223 return dyn_cast_or_null<AutoType>(getContainedDeducedType());
6858 template <typename T> const T *Type::getAs() const {
6859 static_assert(!TypeIsArrayType<T>::value,
6863 if (const auto *Ty = dyn_cast<T>(this))
6863 if (const auto *Ty = dyn_cast<T>(this))
6867 if (!isa<T>(CanonicalType))
6872 return cast<T>(getUnqualifiedDesugaredType());
tools/clang/include/clang/AST/TypeLoc.h 486 return TypeClass::classof(Ty);
498 const TypeClass *getTypePtr() const {
499 return cast<TypeClass>(Base::getTypePtr());
1945 : public InheritingConcreteTypeLoc<DeducedTypeLoc, AutoTypeLoc, AutoType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 110 const T *getNodeAs(StringRef ID) const {
111 return MyBoundNodes.getNodeAs<T>(ID);
5546 extern const AstTypeMatcher<AutoType> autoType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 160 const T *getNodeAs(StringRef ID) const {
165 return It->second.get<T>();
302 virtual bool matches(const T &Node,
309 return matches(DynNode.getUnchecked<T>(), Finder, Builder);
345 DynTypedMatcher(MatcherInterface<T> *Implementation)
346 : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
1067 using head = T1;
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
1625 class TypeTraverseMatcher : public WrapperMatcherInterface<T> {
1632 bool matches(const T &Node, ASTMatchFinder *Finder,
1693 template <typename OuterT> operator Matcher<OuterT>() const {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Sema/Sema.h 7627 Expr *&RetExpr, AutoType *AT);
tools/clang/lib/AST/ASTContext.cpp 4994 AutoType::Profile(ID, DeducedType, Keyword, IsDependent, IsPack);
4995 if (AutoType *AT = AutoTypes.FindNodeOrInsertPos(ID, InsertPos))
4998 auto *AT = new (*this, TypeAlignment)
4999 AutoType(DeducedType, Keyword, IsDependent, IsPack);
5060 new (*this, TypeAlignment) AutoType(QualType(), AutoTypeKeyword::Auto,
tools/clang/lib/AST/ASTDiagnostic.cpp 66 if (const AutoType *AT = dyn_cast<AutoType>(Ty)) {
66 if (const AutoType *AT = dyn_cast<AutoType>(Ty)) {
tools/clang/lib/AST/ASTImporter.cpp 335 ExpectedType VisitAutoType(const AutoType *T);
1312 ExpectedType ASTNodeImporter::VisitAutoType(const AutoType *T) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp 733 if (!IsStructurallyEquivalent(Context, cast<AutoType>(T1)->getDeducedType(),
734 cast<AutoType>(T2)->getDeducedType()))
tools/clang/lib/AST/DeclPrinter.cpp 159 else if (const AutoType *ATy = BaseType->getAs<AutoType>())
159 else if (const AutoType *ATy = BaseType->getAs<AutoType>())
tools/clang/lib/AST/ItaniumMangle.cpp 2401 isa<AutoType>(Ty))
3418 void CXXNameMangler::mangleType(const AutoType *T) {
tools/clang/lib/AST/JSONNodeDumper.cpp 631 void JSONNodeDumper::VisitAutoType(const AutoType *AT) {
tools/clang/lib/AST/MicrosoftMangle.cpp 2254 if (const auto *AT =
2255 dyn_cast_or_null<AutoType>(ResultType->getContainedAutoType())) {
2900 void MicrosoftCXXNameMangler::mangleType(const AutoType *T, Qualifiers,
tools/clang/lib/AST/ODRHash.cpp 853 void VisitAutoType(const AutoType *T) {
tools/clang/lib/AST/TextNodeDumper.cpp 1196 void TextNodeDumper::VisitAutoType(const AutoType *T) {
tools/clang/lib/AST/Type.cpp 1104 QualType VisitAutoType(const AutoType *T) {
2441 if (isa<AutoType>(BaseTy->getCanonicalTypeInternal()))
tools/clang/lib/AST/TypePrinter.cpp 200 if (const auto *AT = dyn_cast<AutoType>(T))
200 if (const auto *AT = dyn_cast<AutoType>(T))
1044 void TypePrinter::printAutoBefore(const AutoType *T, raw_ostream &OS) {
1058 void TypePrinter::printAutoAfter(const AutoType *T, raw_ostream &OS) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 815 const AstTypeMatcher<AutoType> autoType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp 4567 if (const auto *AT =
tools/clang/lib/Sema/SemaDecl.cpp 3455 AutoType *OldAT = Old->getReturnType()->getContainedAutoType();
12889 auto *AT = dyn_cast<AutoType>(DT);
12889 auto *AT = dyn_cast<AutoType>(DT);
13782 if (!FD->getReturnType()->getAs<AutoType>()) {
tools/clang/lib/Sema/SemaDeclAttr.cpp 4228 !FD->getReturnType()->getAs<AutoType>() &&
tools/clang/lib/Sema/SemaExpr.cpp 5928 !FuncT->getReturnType()->getAs<AutoType>() &&
tools/clang/lib/Sema/SemaStmt.cpp 3268 AutoType *AT = CurCap->ReturnType->getContainedAutoType();
3446 AutoType *AT) {
3497 if (!OrigResultType.getType()->getAs<AutoType>()) {
3522 AutoType *NewAT = Deduced->getContainedAutoType();
3636 if (AutoType *AT = FnRetType->getContainedAutoType()) {
tools/clang/lib/Sema/SemaTemplate.cpp 5607 bool UnnamedLocalNoLinkageFinder::VisitAutoType(const AutoType *T) {
6350 auto *AT = dyn_cast<AutoType>(ParamType);
tools/clang/lib/Sema/SemaTemplateDeduction.cpp 4444 if (const AutoType *AT = Type.getType()->getAs<AutoType>()) {
4444 if (const AutoType *AT = Type.getType()->getAs<AutoType>()) {
4518 if (!Type.getType().getNonReferenceType()->getAs<AutoType>())
tools/clang/lib/Sema/SemaType.cpp 2956 AutoType *Auto = dyn_cast<AutoType>(Deduced);
2956 AutoType *Auto = dyn_cast<AutoType>(Deduced);
4044 const AutoType *AT = T->getAs<AutoType>();
4044 const AutoType *AT = T->getAs<AutoType>();
4516 const AutoType *AT = T->getContainedAutoType();
4584 (T.hasQualifiers() || !isa<AutoType>(T) ||
4585 cast<AutoType>(T)->getKeyword() !=
tools/clang/lib/Sema/TreeTransform.h 4408 const AutoType *AutoTy;
4418 } else if ((AutoTy = dyn_cast<AutoType>(T)) && AutoTy->isDeduced()) {
5757 const AutoType *T = TL.getTypePtr();
5757 const AutoType *T = TL.getTypePtr();
5766 QualType Result = TL.getType();
5774 AutoTypeLoc NewTL = TLB.push<AutoTypeLoc>(Result);
5775 NewTL.setNameLoc(TL.getNameLoc());
tools/clang/lib/Serialization/ASTWriter.cpp 369 void ASTTypeWriter::VisitAutoType(const AutoType *T) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp 323 if (Nodes.getNodeAs<AutoType>("deduced_type")) {
tools/clang/tools/extra/clang-tidy/performance/ForRangeCopyCheck.cpp 66 if (!isa<AutoType>(LoopVar.getType()))
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp 260 auto *AT = D->getType()->getContainedAutoType();
tools/clang/tools/extra/clangd/XRefs.cpp 783 if (auto *AT = D->getType()->getContainedAutoType()) {
812 const AutoType *AT = D->getReturnType()->getContainedAutoType();
tools/lldb/source/Symbol/ClangASTContext.cpp 2580 llvm::cast<clang::AutoType>(qual_type)->getDeducedType());
2706 ast, llvm::cast<clang::AutoType>(qual_type)->getDeducedType(),
2765 return IsAggregateType(llvm::cast<clang::AutoType>(qual_type)
2803 return IsAnonymousType(llvm::cast<clang::AutoType>(qual_type)
2892 return IsArrayType(llvm::cast<clang::AutoType>(qual_type)
3038 return IsFunctionType(llvm::cast<clang::AutoType>(qual_type)
3149 return IsHomogeneousAggregate(llvm::cast<clang::AutoType>(qual_type)
3209 return IsFunctionPointerType(llvm::cast<clang::AutoType>(qual_type)
3262 return IsBlockPointerType(llvm::cast<clang::AutoType>(qual_type)
3375 return IsPointerType(llvm::cast<clang::AutoType>(qual_type)
3460 return IsPointerOrReferenceType(llvm::cast<clang::AutoType>(qual_type)
3516 return IsReferenceType(llvm::cast<clang::AutoType>(qual_type)
3726 return IsPossibleDynamicType(llvm::cast<clang::AutoType>(qual_type)
4072 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4338 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4592 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
4731 return GetMemberFunctionAtIndex(llvm::cast<clang::AutoType>(qual_type)
5250 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5423 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5681 num_children = CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
5848 count = CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
6064 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
6144 count = GetNumDirectBaseClasses(llvm::cast<clang::AutoType>(qual_type)
6188 count = GetNumVirtualBaseClasses(llvm::cast<clang::AutoType>(qual_type)
6311 return GetDirectBaseClassAtIndex(llvm::cast<clang::AutoType>(qual_type)
6379 return GetVirtualBaseClassAtIndex(llvm::cast<clang::AutoType>(qual_type)
6521 llvm::cast<clang::AutoType>(qual_type)->getDeducedType());
7021 this, llvm::cast<clang::AutoType>(parent_qual_type)
7387 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7611 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7672 return CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
7723 return GetAsTemplateSpecialization(llvm::cast<clang::AutoType>(qual_type)
8743 return SetHasExternalStorage(llvm::cast<clang::AutoType>(qual_type)
9295 llvm::cast<clang::AutoType>(qual_type)->getDeducedType();
9683 CompilerType(this, llvm::cast<clang::AutoType>(qual_type)
9789 llvm::cast<clang::AutoType>(qual_type)
tools/lldb/source/Symbol/ClangASTImporter.cpp 459 llvm::cast<clang::AutoType>(qual_type)
535 llvm::cast<clang::AutoType>(qual_type)
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
798 typedef decltype(__test<_Tp>(0)) type;
811 remove_all_extents<_Tp>::type>::type
825 : public __is_destructible_safe<_Tp>::type
1447 : public __and_<is_destructible<_Tp>, integral_constant<bool,
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1659 { typedef _Tp&& type; };
1955 { typedef _Tp type; };
1983 { typedef _Up type; };