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

Declarations

gen/tools/clang/include/clang/AST/DeclNodes.inc
  335 USINGDIRECTIVE(UsingDirective, NamedDecl)
tools/clang/include/clang/AST/DeclBase.h
   70 class UsingDirectiveDecl;
tools/clang/include/clang/AST/DeclarationName.h
   41 class UsingDirectiveDecl;
tools/clang/include/clang/Sema/Scope.h
   34 class UsingDirectiveDecl;

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);
   77     return isa_impl<To, From>::doit(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,
  165   using ret_type = To &;       // Normal case, return Ty&
  168   using ret_type = const To &; // Normal case, return Ty&
  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) {
  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);
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(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;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
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/DeclBase.h
 2301                                   UsingDirectiveDecl *>;
 2306     UsingDirectiveDecl *operator*() const;
 2536   static ::clang::DeclContext *doit(const FromTy *Val) {
 2537     return FromTy::castToDeclContext(Val);
tools/clang/include/clang/AST/DeclCXX.h
 2925   static UsingDirectiveDecl *Create(ASTContext &C, DeclContext *DC,
 2932   static UsingDirectiveDecl *CreateDeserialized(ASTContext &C, unsigned ID);
tools/clang/include/clang/AST/JSONNodeDumper.h
  227   void VisitUsingDirectiveDecl(const UsingDirectiveDecl *UDD);
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1588   TRY_TO(TraverseNestedNameSpecifierLoc(D->getQualifierLoc()));
tools/clang/include/clang/AST/TextNodeDumper.h
  316   void VisitUsingDirectiveDecl(const UsingDirectiveDecl *D);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 1576 extern const internal::VariadicDynCastAllOfMatcher<Decl, UsingDirectiveDecl>
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>());
 1026   bool matchesAncestorOf(const T &Node,
 1030     static_assert(std::is_base_of<Decl, T>::value ||
 1031                       std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1032                       std::is_base_of<Stmt, T>::value ||
 1033                       std::is_base_of<TypeLoc, 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 {
 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) {
 1438 class HasParentMatcher : public WrapperMatcherInterface<T> {
 1446   bool matches(const T &Node, ASTMatchFinder *Finder,
 1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
 1466   bool matches(const T &Node, ASTMatchFinder *Finder,
 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/Scope.h
  201   using UsingDirectivesTy = SmallVector<UsingDirectiveDecl *, 2>;
  460   void PushUsingDirective(UsingDirectiveDecl *UDir) {
tools/clang/include/clang/Sema/Sema.h
 4996                                UsingDirectiveDecl *&UsingDecl);
 5048   void PushUsingDirective(Scope *S, UsingDirectiveDecl *UDir);
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,
  229     LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
  234       CallOverloadedCreateFun<ToDeclT> OC;
  256     GetImportedOrCreateSpecialDecl(ToDeclT *&ToD, CreateFunT CreateFun,
  257                                    FromDeclT *FromD, Args &&... args) {
  262       ToD = cast_or_null<ToDeclT>(Importer.GetAlreadyImportedOrNull(FromD));
  483     ExpectedDecl VisitUsingDirectiveDecl(UsingDirectiveDecl *D);
 4355 ExpectedDecl ASTNodeImporter::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
 4382   UsingDirectiveDecl *ToUsingDir;
tools/clang/lib/AST/DeclBase.cpp
 1418   if ((D->getIdentifierNamespace() == 0 && !isa<UsingDirectiveDecl>(D)) ||
 1902 UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const {
 1903   return cast<UsingDirectiveDecl>(*I);
 1911   lookup_result Result = lookup(UsingDirectiveDecl::getName());
tools/clang/lib/AST/DeclCXX.cpp
 2683 UsingDirectiveDecl *UsingDirectiveDecl::Create(ASTContext &C, DeclContext *DC,
 2692   return new (C, DC) UsingDirectiveDecl(DC, L, NamespaceLoc, QualifierLoc,
 2696 UsingDirectiveDecl *UsingDirectiveDecl::CreateDeserialized(ASTContext &C,
 2698   return new (C, ID) UsingDirectiveDecl(nullptr, SourceLocation(),
tools/clang/lib/AST/DeclPrinter.cpp
   78     void VisitUsingDirectiveDecl(UsingDirectiveDecl *D);
  931 void DeclPrinter::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
tools/clang/lib/AST/JSONNodeDumper.cpp
  713 void JSONNodeDumper::VisitUsingDirectiveDecl(const UsingDirectiveDecl *UDD) {
tools/clang/lib/AST/TextNodeDumper.cpp
 1503 void TextNodeDumper::VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  662 const internal::VariadicDynCastAllOfMatcher<Decl, UsingDirectiveDecl>
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
 4540 void CGDebugInfo::EmitUsingDirective(const UsingDirectiveDecl &UD) {
tools/clang/lib/CodeGen/CGDebugInfo.h
  470   void EmitUsingDirective(const UsingDirectiveDecl &UD);
tools/clang/lib/CodeGen/CGDecl.cpp
  129       DI->EmitUsingDirective(cast<UsingDirectiveDecl>(D));
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 6568                   isa<UsingDirectiveDecl>(D) ||
tools/clang/lib/CodeGen/CodeGenModule.cpp
 5299       DI->EmitUsingDirective(cast<UsingDirectiveDecl>(*D));
tools/clang/lib/Index/IndexDecl.cpp
  598   bool VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
tools/clang/lib/Index/IndexSymbol.cpp
   61   if (isa<UsingDirectiveDecl>(D))
tools/clang/lib/Index/USRGeneration.cpp
  109   void VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
tools/clang/lib/Parse/ParseDeclCXX.cpp
  214   UsingDirectiveDecl *ImplicitUsingDirectiveDecl = nullptr;
  260   UsingDirectiveDecl *ImplicitUsingDirectiveDecl = nullptr;
tools/clang/lib/Sema/SemaDeclCXX.cpp
 9308     const ParsedAttributesView &AttrList, UsingDirectiveDecl *&UD) {
 9425       UD = UsingDirectiveDecl::Create(Context, Parent,
 9844   UsingDirectiveDecl *UDir = nullptr;
 9893     UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, NamespcLoc,
 9913 void Sema::PushUsingDirective(Scope *S, UsingDirectiveDecl *UDir) {
tools/clang/lib/Sema/SemaLookup.cpp
  119           for (auto *I : S->using_directives())
  143     void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
  180     void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
 2065   for (auto *I : StartDC->using_directives()) {
tools/clang/lib/Sema/SemaModule.cpp
  605   if (isa<UsingDirectiveDecl>(D))
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 2711 Decl *TemplateDeclInstantiator::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
 2715   UsingDirectiveDecl *Inst
 2716     = UsingDirectiveDecl::Create(SemaRef.Context, Owner, D->getLocation(),
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  329     void VisitUsingDirectiveDecl(UsingDirectiveDecl *D);
 1630 void ASTDeclReader::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
 3694     D = UsingDirectiveDecl::CreateDeserialized(Context, ID);
tools/clang/lib/Serialization/ASTWriterDecl.cpp
   64     void VisitUsingDirectiveDecl(UsingDirectiveDecl *D);
 1270 void ASTDeclWriter::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  436   if (auto *U = dyn_cast<UsingDirectiveDecl>(D))
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  538   } else if (const auto *UsingNamespace =
  539                  Result.Nodes.getNodeAs<UsingDirectiveDecl>(
  810   for (const auto *UsingNamespace : UsingNamespaceDecls) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.h
  156   llvm::SmallPtrSet<const UsingDirectiveDecl *, 8> UsingNamespaceDecls;
tools/clang/tools/extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp
   62   if (const auto *UsingDirective = dyn_cast<UsingDirectiveDecl>(D)) {
   62   if (const auto *UsingDirective = dyn_cast<UsingDirectiveDecl>(D)) {
tools/clang/tools/extra/clang-tidy/google/UsingNamespaceDirectiveCheck.cpp
   31   const auto *U = Result.Nodes.getNodeAs<UsingDirectiveDecl>("usingNamespace");
   31   const auto *U = Result.Nodes.getNodeAs<UsingDirectiveDecl>("usingNamespace");
tools/clang/tools/extra/clang-tidy/llvm/PreferRegisterOverUnsignedCheck.cpp
   46     for (const auto *UsingDirective : Context->using_directives()) {
tools/clang/tools/extra/clangd/AST.cpp
  115                                     const UsingDirectiveDecl &D) {
  132   if (auto *UD = llvm::dyn_cast<UsingDirectiveDecl>(&ND)) {
tools/clang/tools/extra/clangd/AST.h
   49                                     const UsingDirectiveDecl &D);
tools/clang/tools/extra/clangd/FindTarget.cpp
  136     if (const UsingDirectiveDecl *UDD = llvm::dyn_cast<UsingDirectiveDecl>(D))
  136     if (const UsingDirectiveDecl *UDD = llvm::dyn_cast<UsingDirectiveDecl>(D))
  419     void VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
   84       isa<UsingDirectiveDecl>(D))
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
   44   const UsingDirectiveDecl *TargetDirective = nullptr;
   50   FindSameUsings(const UsingDirectiveDecl &Target,
   51                  std::vector<const UsingDirectiveDecl *> &Results)
   55   bool VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
   66   std::vector<const UsingDirectiveDecl *> &Results;
   71 removeUsingDirective(ASTContext &Ctx, const UsingDirectiveDecl *D) {
  108   TargetDirective = CA->ASTNode.get<UsingDirectiveDecl>();
  133   std::vector<const UsingDirectiveDecl *> AllDirectives;
tools/clang/tools/extra/modularize/Modularize.cpp
  618     if (isa<NamespaceDecl>(ND) || isa<UsingDirectiveDecl>(ND) ||
tools/clang/tools/libclang/CIndex.cpp
 1241 bool CursorVisitor::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
 4477   if (isa<UsingDirectiveDecl>(D))
 6317     return MakeCXCursor(cast<UsingDirectiveDecl>(D)->getNominatedNamespace(),
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
  120   bool VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
tools/clang/tools/libclang/CursorVisitor.h
  236   bool VisitUsingDirectiveDecl(UsingDirectiveDecl *D);
tools/lldb/include/lldb/Symbol/ClangASTContext.h
  943   clang::UsingDirectiveDecl *
tools/lldb/source/Symbol/ClangASTContext.cpp
 1902 clang::UsingDirectiveDecl *ClangASTContext::CreateUsingDirectiveDeclaration(
 1907     clang::UsingDirectiveDecl *using_decl = clang::UsingDirectiveDecl::Create(
 1907     clang::UsingDirectiveDecl *using_decl = clang::UsingDirectiveDecl::Create(
 9994           if (clang::UsingDirectiveDecl *ud =
 9995                   llvm::dyn_cast<clang::UsingDirectiveDecl>(child)) {
10109           if (clang::UsingDirectiveDecl *ud =
10110                   llvm::dyn_cast<clang::UsingDirectiveDecl>(child)) {
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>