reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/DeclNodes.inc
  309 TYPEDEF(Typedef, TypedefNameDecl)
tools/clang/include/clang/Edit/Rewriters.h
   19   class TypedefDecl;
tools/clang/include/clang/Sema/Sema.h
  186   class TypedefDecl;
tools/lldb/include/lldb/Core/ClangForward.h
  118 class TypedefDecl;

References

include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   57   static inline bool doit(const From &Val) {
   58     return To::classof(&Val);
  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;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 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) {
  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);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  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;
tools/clang/include/clang/AST/ASTContext.h
  313   mutable TypedefDecl *Int128Decl = nullptr;
  316   mutable TypedefDecl *UInt128Decl = nullptr;
  320   mutable TypedefDecl *BuiltinVaListDecl = nullptr;
  323   mutable TypedefDecl *BuiltinMSVaListDecl = nullptr;
  326   mutable TypedefDecl *ObjCIdDecl = nullptr;
  329   mutable TypedefDecl *ObjCSelDecl = nullptr;
  332   mutable TypedefDecl *ObjCClassDecl = nullptr;
  338   mutable TypedefDecl *BOOLDecl = nullptr;
  363   mutable TypedefDecl *CFConstantStringTypeDecl = nullptr;
  370   TypedefDecl *ObjCInstanceTypeDecl = nullptr;
 1114   TypedefDecl *buildImplicitTypedef(QualType T, StringRef Name) const;
 1117   TypedefDecl *getInt128Decl() const;
 1120   TypedefDecl *getUInt128Decl() const;
 1626   TypedefDecl *getCFConstantStringDecl() const;
 1745   TypedefDecl *getObjCInstanceTypeDecl();
 1852   TypedefDecl *getObjCIdDecl() const;
 1864   TypedefDecl *getObjCSelDecl() const;
 1874   TypedefDecl *getObjCClassDecl() const;
 1889   TypedefDecl *getBOOLDecl() const {
 1894   void setBOOLDecl(TypedefDecl *TD) {
 1910   TypedefDecl *getBuiltinVaListDecl() const;
 1924   TypedefDecl *getBuiltinMSVaListDecl() const;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  349   void VisitTypedefDecl(const TypedefDecl *D) { Visit(D->getUnderlyingType()); }
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);
  234   static DynTypedNode create(const T &Node) {
  235     return BaseConverter<T>::create(Node);
  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 *>(
  469     : public DynCastPtrConverter<T, Decl> {};
tools/clang/include/clang/AST/Decl.h
 3100   static TypedefDecl *Create(ASTContext &C, DeclContext *DC,
 3103   static TypedefDecl *CreateDeserialized(ASTContext &C, unsigned ID);
tools/clang/include/clang/AST/DeclBase.h
 2536   static ::clang::DeclContext *doit(const FromTy *Val) {
 2537     return FromTy::castToDeclContext(Val);
tools/clang/include/clang/AST/JSONNodeDumper.h
  224   void VisitTypedefDecl(const TypedefDecl *TD);
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1789   TRY_TO(TraverseTypeLoc(D->getTypeSourceInfo()->getTypeLoc()));
tools/clang/include/clang/AST/TextNodeDumper.h
  298   void VisitTypedefDecl(const TypedefDecl *D);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
  185 extern const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl>
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)
  507           typename std::enable_if<std::is_base_of<From, T>::value &&
  508                                !std::is_same<From, T>::value>::type * = nullptr)
  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>());
  994   bool matchesChildOf(const T &Node, const DynTypedMatcher &Matcher,
  997     static_assert(std::is_base_of<Decl, T>::value ||
  998                   std::is_base_of<Stmt, T>::value ||
  999                   std::is_base_of<NestedNameSpecifier, T>::value ||
 1000                   std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1001                   std::is_base_of<TypeLoc, T>::value ||
 1002                   std::is_base_of<QualType, T>::value,
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1146     template <typename To> operator Matcher<To>() const {
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 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 {
 1285 class HasMatcher : public WrapperMatcherInterface<T> {
 1290   bool matches(const T &Node, ASTMatchFinder *Finder,
 1335   template <typename T> operator Matcher<T>() const {
 1337                Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1338                getMatchers<T>(std::index_sequence_for<Ps...>()))
 1339         .template unconditionalConvertTo<T>();
 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>> {
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
 2738   TypedefDecl *ParseTypedefDecl(Scope *S, Declarator &D, QualType T,
tools/clang/lib/ARCMigrate/ObjCMT.cpp
   53   void CacheObjCNSIntegerTypedefed(const TypedefDecl *TypedefDcl);
   55                      const TypedefDecl *TypedefDcl);
   95   const TypedefDecl *NSIntegerTypedefed;
   96   const TypedefDecl *NSUIntegerTypedefed;
  717                                 const TypedefDecl *TypedefDcl,
  772                                 const TypedefDecl *TypedefDcl,
  900                                           const TypedefDecl *TypedefDcl) {
  911                                            const TypedefDecl *TypedefDcl) {
 1889           const TypedefDecl *TD = dyn_cast<TypedefDecl>(*N);
 1889           const TypedefDecl *TD = dyn_cast<TypedefDecl>(*N);
 1896       else if (const TypedefDecl *TD = dyn_cast<TypedefDecl>(*D)) {
 1896       else if (const TypedefDecl *TD = dyn_cast<TypedefDecl>(*D)) {
 1907               if (const TypedefDecl *TDF = dyn_cast<TypedefDecl>(*N)) {
 1907               if (const TypedefDecl *TDF = dyn_cast<TypedefDecl>(*N)) {
tools/clang/lib/AST/ASTContext.cpp
  171       if (isa<TypedefDecl>(D)) {
 1167 TypedefDecl *ASTContext::buildImplicitTypedef(QualType T,
 1170   TypedefDecl *NewDecl = TypedefDecl::Create(
 1170   TypedefDecl *NewDecl = TypedefDecl::Create(
 1177 TypedefDecl *ASTContext::getInt128Decl() const {
 1183 TypedefDecl *ASTContext::getUInt128Decl() const {
 5962 TypedefDecl *ASTContext::getCFConstantStringDecl() const {
 6068   CFConstantStringTypeDecl = cast<TypedefDecl>(TD->getDecl());
 6253 TypedefDecl *ASTContext::getObjCInstanceTypeDecl() {
 7296 TypedefDecl *ASTContext::getObjCIdDecl() const {
 7305 TypedefDecl *ASTContext::getObjCSelDecl() const {
 7313 TypedefDecl *ASTContext::getObjCClassDecl() const {
 7340 static TypedefDecl *CreateCharPtrNamedVaListDecl(const ASTContext *Context,
 7347 static TypedefDecl *CreateMSVaListDecl(const ASTContext *Context) {
 7351 static TypedefDecl *CreateCharPtrBuiltinVaListDecl(const ASTContext *Context) {
 7355 static TypedefDecl *CreateVoidPtrBuiltinVaListDecl(const ASTContext *Context) {
 7361 static TypedefDecl *
 7425 static TypedefDecl *CreatePowerABIBuiltinVaListDecl(const ASTContext *Context) {
 7474   TypedefDecl *VaListTagTypedefDecl =
 7488 static TypedefDecl *
 7542 static TypedefDecl *CreatePNaClABIBuiltinVaListDecl(const ASTContext *Context) {
 7550 static TypedefDecl *
 7591 static TypedefDecl *
 7646 static TypedefDecl *CreateVaListDecl(const ASTContext *Context,
 7670 TypedefDecl *ASTContext::getBuiltinVaListDecl() const {
 7688 TypedefDecl *ASTContext::getBuiltinMSVaListDecl() const {
tools/clang/lib/AST/ASTImporter.cpp
  217           -> decltype(ToDeclT::Create(std::forward<Args>(args)...)) {
  218         return ToDeclT::Create(std::forward<Args>(args)...);
  229     LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
  247       CallOverloadedCreateFun<NewDeclT> OC;
  457     ExpectedDecl VisitTypedefDecl(TypedefDecl *D);
 2365   } else if (GetImportedOrCreateDecl<TypedefDecl>(
 2381 ExpectedDecl ASTNodeImporter::VisitTypedefDecl(TypedefDecl *D) {
tools/clang/lib/AST/Comment.cpp
  329             ? cast<TypedefDecl>(CommentDecl)->getTypeSourceInfo()
tools/clang/lib/AST/Decl.cpp
 4722 TypedefDecl *TypedefDecl::Create(ASTContext &C, DeclContext *DC,
 4725   return new (C, DC) TypedefDecl(C, DC, StartLoc, IdLoc, Id, TInfo);
 4767 TypedefDecl *TypedefDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
 4768   return new (C, ID) TypedefDecl(C, nullptr, SourceLocation(), SourceLocation(),
tools/clang/lib/AST/DeclPrinter.cpp
   62     void VisitTypedefDecl(TypedefDecl *D);
  500 void DeclPrinter::VisitTypedefDecl(TypedefDecl *D) {
tools/clang/lib/AST/JSONNodeDumper.cpp
  695 void JSONNodeDumper::VisitTypedefDecl(const TypedefDecl *TD) {
tools/clang/lib/AST/ODRHash.cpp
  355   void VisitTypedefDecl(const TypedefDecl *D) {
  356     Inherited::VisitTypedefDecl(D);
tools/clang/lib/AST/TextNodeDumper.cpp
 1227 void TextNodeDumper::VisitTypedefDecl(const TypedefDecl *D) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  554 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefDecl> typedefDecl;
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/Frontend/Rewrite/RewriteModernObjC.cpp
 3568     ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl,
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 3025     ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl,
tools/clang/lib/Index/USRGeneration.cpp
   96   void VisitTypedefDecl(const TypedefDecl *D);
  579 void USRGenerator::VisitTypedefDecl(const TypedefDecl *D) {
tools/clang/lib/Sema/JumpDiagnostics.cpp
  212       return ScopePair(isa<TypedefDecl>(TD)
tools/clang/lib/Sema/SemaDecl.cpp
 5919   TypedefDecl *NewTD = ParseTypedefDecl(S, D, TInfo->getType(), TInfo);
 7189   else if (isa<TypedefDecl>(ShadowedDecl))
14347 TypedefDecl *Sema::ParseTypedefDecl(Scope *S, Declarator &D, QualType T,
14358   TypedefDecl *NewTD =
14359       TypedefDecl::Create(Context, CurContext, D.getBeginLoc(),
14477   if (isa<TypedefDecl>(PrevDecl))
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3361       } else if (isa<TypedefDecl>(Member)) {
tools/clang/lib/Sema/SemaExpr.cpp
17986       if (TypedefDecl *TD = dyn_cast<TypedefDecl>(ND))
17986       if (TypedefDecl *TD = dyn_cast<TypedefDecl>(ND))
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  745     Typedef = TypedefDecl::Create(SemaRef.Context, Owner, D->getBeginLoc(),
  785 Decl *TemplateDeclInstantiator::VisitTypedefDecl(TypedefDecl *D) {
tools/clang/lib/Sema/SemaType.cpp
 4269     TypedefDecl *vaListTypedef = S.Context.getBuiltinVaListDecl();
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  333     void VisitTypedefDecl(TypedefDecl *TD);
  687 void ASTDeclReader::VisitTypedefDecl(TypedefDecl *TD) {
 3649     D = TypedefDecl::CreateDeserialized(Context, ID);
tools/clang/lib/Serialization/ASTWriterDecl.cpp
   68     void VisitTypedefDecl(TypedefDecl *D);
  381 void ASTDeclWriter::VisitTypedefDecl(TypedefDecl *D) {
tools/clang/tools/extra/clang-move/Move.cpp
  195     if (const auto *TD = Result.Nodes.getNodeAs<TypedefDecl>("typedef"))
  195     if (const auto *TD = Result.Nodes.getNodeAs<TypedefDecl>("typedef"))
tools/clang/tools/extra/clang-tidy/misc/MisplacedConstCheck.cpp
   48   const auto *Typedef = Result.Nodes.getNodeAs<TypedefDecl>("typedef");
   48   const auto *Typedef = Result.Nodes.getNodeAs<TypedefDecl>("typedef");
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
   48   const auto *Typedef = Result.Nodes.getNodeAs<TypedefDecl>("TypeDecl");
   48   const auto *Typedef = Result.Nodes.getNodeAs<TypedefDecl>("TypeDecl");
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  189                              isa<TypedefDecl>(TypedefName) ? "typedef"
tools/clang/tools/extra/clang-tidy/modernize/UseUsingCheck.cpp
   79   const auto *MatchedDecl = Result.Nodes.getNodeAs<TypedefDecl>("typedef");
   79   const auto *MatchedDecl = Result.Nodes.getNodeAs<TypedefDecl>("typedef");
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  404   if (isa<TypedefDecl>(D) && NamingStyles[SK_Typedef])
tools/clang/tools/libclang/CIndex.cpp
  694 bool CursorVisitor::VisitTypedefDecl(TypedefDecl *D) {
 6090     } else if (const TypedefDecl *Typedef = dyn_cast<TypedefDecl>(D)) {
 6090     } else if (const TypedefDecl *Typedef = dyn_cast<TypedefDecl>(D)) {
tools/clang/tools/libclang/CursorVisitor.h
  205   bool VisitTypedefDecl(TypedefDecl *D);
tools/clang/unittests/AST/ASTImporterTest.cpp
 5420     auto *ToTypedef = FirstDeclMatcher<TypedefDecl>().match(
 5424     auto *FromTypedef = FirstDeclMatcher<TypedefDecl>().match(
tools/clang/unittests/AST/DeclMatcher.h
   22   NodeType *Node = nullptr;
   26       Node = const_cast<NodeType *>(Result.Nodes.getNodeAs<NodeType>(""));
   32   NodeType *match(const Decl *D, const MatcherType &AMatcher) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
 2144   TypedefDecl *typedef_decl = TypedefDecl::Create(
 2144   TypedefDecl *typedef_decl = TypedefDecl::Create(
tools/lldb/source/Symbol/ClangASTContext.cpp
 4783     clang::TypedefDecl *decl = clang::TypedefDecl::Create(
 4783     clang::TypedefDecl *decl = clang::TypedefDecl::Create(
 4892     clang::TypedefDecl *decl = clang::TypedefDecl::Create(
 4892     clang::TypedefDecl *decl = clang::TypedefDecl::Create(
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1580     { typedef _Tp const     type; };
 1629     { typedef _Tp   type; };
 1983     { typedef _Up     type; };
 1999     { typedef typename remove_reference<_Tp>::type*     type; };
 2003     : public __add_pointer_helper<_Tp>