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

Declarations

tools/clang/include/clang/AST/ODRHash.h
   30 class NestedNameSpecifier;
tools/clang/include/clang/AST/TemplateName.h
   31 class NestedNameSpecifier;
tools/clang/include/clang/Sema/CodeCompleteConsumer.h
   46 class NestedNameSpecifier;
tools/clang/include/clang/Sema/TypoCorrection.h
   38 class NestedNameSpecifier;
tools/clang/include/clang/Serialization/ASTWriter.h
   82 class NestedNameSpecifier;
tools/clang/include/clang/Tooling/Core/Lookup.h
   24 class NestedNameSpecifier;

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
   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;
  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);
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  306 cast_or_null(Y *Val) {
  309   return cast<X>(Val);
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 };
tools/clang/include/clang/AST/ASTContext.h
  241   mutable llvm::FoldingSet<NestedNameSpecifier> NestedNameSpecifiers;
  242   mutable NestedNameSpecifier *GlobalNestedNameSpecifier = nullptr;
 1466                              NestedNameSpecifier *NNS, QualType NamedType,
 1469                                 NestedNameSpecifier *NNS,
 1474                                                   NestedNameSpecifier *NNS,
 1478       ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
 1999   TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS,
 2003   TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
 2005   TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
 2405   NestedNameSpecifier *
 2406   getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
tools/clang/include/clang/AST/ASTImporter.h
  427     llvm::Expected<NestedNameSpecifier *> Import(NestedNameSpecifier *FromNNS);
  427     llvm::Expected<NestedNameSpecifier *> Import(NestedNameSpecifier *FromNNS);
tools/clang/include/clang/AST/ASTTypeTraits.h
   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);
  414     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  415       if (ASTNodeKind::getFromNodeKind<T>().isSame(NodeKind))
  419     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  424     static DynTypedNode create(const T &Node) {
  426       Result.NodeKind = ASTNodeKind::getFromNodeKind<T>();
  488     NestedNameSpecifier, void> : public PtrConverter<NestedNameSpecifier> {};
tools/clang/include/clang/AST/Decl.h
  753   NestedNameSpecifier *getQualifier() const {
 3359   NestedNameSpecifier *getQualifier() const {
tools/clang/include/clang/AST/DeclCXX.h
 2894   NestedNameSpecifier *getQualifier() const {
 3017   NestedNameSpecifier *getQualifier() const {
 3318   NestedNameSpecifier *getQualifier() const {
 3539   NestedNameSpecifier *getQualifier() const {
 3629   NestedNameSpecifier *getQualifier() const {
tools/clang/include/clang/AST/Expr.h
 1249   NestedNameSpecifier *getQualifier() const {
 2922   NestedNameSpecifier *getQualifier() const {
tools/clang/include/clang/AST/ExprCXX.h
 2536   NestedNameSpecifier *getQualifier() const {
 2959   NestedNameSpecifier *getQualifier() const {
 3211   NestedNameSpecifier *getQualifier() const {
 3626   NestedNameSpecifier *getQualifier() const {
tools/clang/include/clang/AST/NestedNameSpecifier.h
   63   llvm::PointerIntPair<NestedNameSpecifier *, 2, StoredSpecifierKind> Prefix;
  108   NestedNameSpecifier(const NestedNameSpecifier &Other) = default;
  112   static NestedNameSpecifier *FindOrInsert(const ASTContext &Context,
  113                                            const NestedNameSpecifier &Mockup);
  116   NestedNameSpecifier &operator=(const NestedNameSpecifier &) = delete;
  116   NestedNameSpecifier &operator=(const NestedNameSpecifier &) = delete;
  123   static NestedNameSpecifier *Create(const ASTContext &Context,
  124                                      NestedNameSpecifier *Prefix,
  128   static NestedNameSpecifier *Create(const ASTContext &Context,
  129                                      NestedNameSpecifier *Prefix,
  133   static NestedNameSpecifier *Create(const ASTContext &Context,
  134                                      NestedNameSpecifier *Prefix,
  138   static NestedNameSpecifier *Create(const ASTContext &Context,
  139                                      NestedNameSpecifier *Prefix,
  148   static NestedNameSpecifier *Create(const ASTContext &Context,
  153   static NestedNameSpecifier *GlobalSpecifier(const ASTContext &Context);
  157   static NestedNameSpecifier *SuperSpecifier(const ASTContext &Context,
  167   NestedNameSpecifier *getPrefix() const { return Prefix.getPointer(); }
  237   NestedNameSpecifier *Qualifier = nullptr;
  242   static unsigned getLocalDataLength(NestedNameSpecifier *Qualifier);
  246   static unsigned getDataLength(NestedNameSpecifier *Qualifier);
  254   NestedNameSpecifierLoc(NestedNameSpecifier *Qualifier, void *Data)
  267   NestedNameSpecifier *getNestedNameSpecifier() const {
  352   NestedNameSpecifier *Representation = nullptr;
  383   NestedNameSpecifier *getRepresentation() const { return Representation; }
  468   void MakeTrivial(ASTContext &Context, NestedNameSpecifier *Qualifier,
  516                                            NestedNameSpecifier *NNS) {
tools/clang/include/clang/AST/ODRHash.h
   83   void AddNestedNameSpecifier(const NestedNameSpecifier *NNS);
tools/clang/include/clang/AST/RecursiveASTVisitor.h
  238   bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
  732     NestedNameSpecifier *NNS) {
  740   case NestedNameSpecifier::Identifier:
  741   case NestedNameSpecifier::Namespace:
  742   case NestedNameSpecifier::NamespaceAlias:
  743   case NestedNameSpecifier::Global:
  744   case NestedNameSpecifier::Super:
  747   case NestedNameSpecifier::TypeSpec:
  748   case NestedNameSpecifier::TypeSpecWithTemplate:
  765   case NestedNameSpecifier::Identifier:
  766   case NestedNameSpecifier::Namespace:
  767   case NestedNameSpecifier::NamespaceAlias:
  768   case NestedNameSpecifier::Global:
  769   case NestedNameSpecifier::Super:
  772   case NestedNameSpecifier::TypeSpec:
  773   case NestedNameSpecifier::TypeSpecWithTemplate:
tools/clang/include/clang/AST/TemplateBase.h
  397     NestedNameSpecifier *Qualifier;
tools/clang/include/clang/AST/TemplateName.h
  396   llvm::PointerIntPair<NestedNameSpecifier *, 1> Qualifier;
  402   QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword,
  408   NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); }
  426   static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS,
  451   llvm::PointerIntPair<NestedNameSpecifier *, 1, bool> Qualifier;
  474   DependentTemplateName(NestedNameSpecifier *Qualifier,
  479   DependentTemplateName(NestedNameSpecifier *Qualifier,
  485   DependentTemplateName(NestedNameSpecifier *Qualifier,
  490   DependentTemplateName(NestedNameSpecifier *Qualifier,
  498   NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); }
  527   static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS,
  534   static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS,
tools/clang/include/clang/AST/Type.h
 5213   NestedNameSpecifier *NNS;
 5222   ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
 5242   NestedNameSpecifier *getQualifier() const { return NNS; }
 5265                       NestedNameSpecifier *NNS, QualType NamedType,
 5292   NestedNameSpecifier *NNS;
 5297   DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
 5307   NestedNameSpecifier *getQualifier() const { return NNS; }
 5326                       NestedNameSpecifier *NNS, const IdentifierInfo *Name) {
 5346   NestedNameSpecifier *NNS;
 5352                                       NestedNameSpecifier *NNS,
 5366   NestedNameSpecifier *getQualifier() const { return NNS; }
 5400                       NestedNameSpecifier *Qualifier,
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
  141 using NestedNameSpecifierMatcher = internal::Matcher<NestedNameSpecifier>;
 5876   if (const NestedNameSpecifier *Qualifier = Node.getQualifier())
 6005 extern const internal::VariadicAllOfMatcher<NestedNameSpecifier>
 6018       new internal::LocMatcher<NestedNameSpecifierLoc, NestedNameSpecifier>(
 6070   const NestedNameSpecifier *NextNode = Node.getPrefix();
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>();
  454   template <typename T> Matcher<T> unconditionalConvertTo() const;
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  922       std::is_same<T, Decl>::value ||
  923       std::is_same<T, Stmt>::value ||
  924       std::is_same<T, QualType>::value ||
  925       std::is_same<T, Type>::value ||
  926       std::is_same<T, TypeLoc>::value ||
  927       std::is_same<T, NestedNameSpecifier>::value ||
  927       std::is_same<T, NestedNameSpecifier>::value ||
  928       std::is_same<T, NestedNameSpecifierLoc>::value ||
  929       std::is_same<T, CXXCtorInitializer>::value;
  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 ||
  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,
 1009   bool matchesDescendantOf(const T &Node,
 1013     static_assert(std::is_base_of<Decl, T>::value ||
 1014                   std::is_base_of<Stmt, T>::value ||
 1015                   std::is_base_of<NestedNameSpecifier, T>::value ||
 1015                   std::is_base_of<NestedNameSpecifier, T>::value ||
 1016                   std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1017                   std::is_base_of<TypeLoc, T>::value ||
 1018                   std::is_base_of<QualType, T>::value,
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1096     TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, QualType,
 1111     TypeList<Decl, Stmt, NestedNameSpecifier, NestedNameSpecifierLoc, TypeLoc,
 1141     explicit Adaptor(const Matcher<T> &InnerMatcher)
 1146     template <typename To> operator Matcher<To>() const {
 1151     const Matcher<T> InnerMatcher;
 1155   static Adaptor<T> create(const Matcher<T> &InnerMatcher) {
 1155   static Adaptor<T> create(const Matcher<T> &InnerMatcher) {
 1160   Adaptor<T> operator()(const Matcher<T> &InnerMatcher) const {
 1160   Adaptor<T> operator()(const Matcher<T> &InnerMatcher) const {
 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 {
 1268         ->template unconditionalConvertTo<T>();
 1285 class HasMatcher : public WrapperMatcherInterface<T> {
 1287   explicit HasMatcher(const Matcher<ChildT> &ChildMatcher)
 1290   bool matches(const T &Node, ASTMatchFinder *Finder,
 1304 class ForEachMatcher : public WrapperMatcherInterface<T> {
 1305   static_assert(IsBaseType<ChildT>::value,
 1309    explicit ForEachMatcher(const Matcher<ChildT> &ChildMatcher)
 1312   bool matches(const T& Node, ASTMatchFinder* Finder,
 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>());
 1418 class HasDescendantMatcher : public WrapperMatcherInterface<T> {
 1419   static_assert(IsBaseType<DescendantT>::value,
 1423   explicit HasDescendantMatcher(const Matcher<DescendantT> &DescendantMatcher)
 1426   bool matches(const T &Node, ASTMatchFinder *Finder,
 1480 class ForEachDescendantMatcher : public WrapperMatcherInterface<T> {
 1481   static_assert(IsBaseType<DescendantT>::value,
 1486       const Matcher<DescendantT> &DescendantMatcher)
 1489   bool matches(const T &Node, ASTMatchFinder *Finder,
 1575     : public VariadicFunction<BindableMatcher<T>, Matcher<T>,
 1575     : public VariadicFunction<BindableMatcher<T>, Matcher<T>,
 1576                               makeAllOfComposite<T>> {
 1586   explicit LocMatcher(const Matcher<T> &InnerMatcher)
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/CodeCompleteConsumer.h
  850   NestedNameSpecifier *Qualifier = nullptr;
  865                        NestedNameSpecifier *Qualifier = nullptr,
tools/clang/include/clang/Sema/DeclSpec.h
   76   NestedNameSpecifier *getScopeRep() const {
  163   void MakeTrivial(ASTContext &Context, NestedNameSpecifier *Qualifier,
tools/clang/include/clang/Sema/Sema.h
 2943                                                  NestedNameSpecifier *Qualifier,
 3068                                            NestedNameSpecifier *Qualifier,
 5785   CXXRecordDecl *getCurrentInstantiationOf(NestedNameSpecifier *NNS);
 5812   NamedDecl *FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS);
tools/clang/include/clang/Sema/SemaInternal.h
  210       NestedNameSpecifier* NameSpecifier;
  230                                       NestedNameSpecifier *&NNS);
  277                NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
tools/clang/include/clang/Sema/TypoCorrection.h
   60                  NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0,
   68   TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
   76   TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr,
   91   NestedNameSpecifier *getCorrectionSpecifier() const {
   95   void setCorrectionSpecifier(NestedNameSpecifier *NNS) {
  267   NestedNameSpecifier *CorrectionNameSpec = nullptr;
  286                                        NestedNameSpecifier *TypoNNS = nullptr)
  323   void setTypoNNS(NestedNameSpecifier *NNS) { TypoNNS = NNS; }
  349   NestedNameSpecifier *TypoNNS;
  355                             NestedNameSpecifier *TypoNNS = nullptr)
tools/clang/include/clang/Serialization/ASTReader.h
 2143   NestedNameSpecifier *ReadNestedNameSpecifier(ModuleFile &F,
 2569   NestedNameSpecifier *readNestedNameSpecifier() {
tools/clang/include/clang/Serialization/ASTWriter.h
  923   void AddNestedNameSpecifier(NestedNameSpecifier *NNS);
tools/clang/include/clang/Tooling/Core/Lookup.h
   41 std::string replaceNestedName(const NestedNameSpecifier *Use,
tools/clang/lib/AST/ASTContext.cpp
 4281                                        NestedNameSpecifier *NNS,
 4347                                           NestedNameSpecifier *NNS,
 4351     NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
 4374                                  NestedNameSpecifier *NNS,
 4387                                  NestedNameSpecifier *NNS,
 4403   NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
 5487 NestedNameSpecifier *
 5488 ASTContext::getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const {
 5493   case NestedNameSpecifier::Identifier:
 5495     return NestedNameSpecifier::Create(*this,
 5499   case NestedNameSpecifier::Namespace:
 5502     return NestedNameSpecifier::Create(*this, nullptr,
 5505   case NestedNameSpecifier::NamespaceAlias:
 5508     return NestedNameSpecifier::Create(*this, nullptr,
 5512   case NestedNameSpecifier::TypeSpec:
 5513   case NestedNameSpecifier::TypeSpecWithTemplate: {
 5524       return NestedNameSpecifier::Create(*this, DNT->getQualifier(),
 5530     return NestedNameSpecifier::Create(*this, nullptr, false,
 5534   case NestedNameSpecifier::Global:
 5535   case NestedNameSpecifier::Super:
 7741 ASTContext::getQualifiedTemplateName(NestedNameSpecifier *NNS,
 7765 ASTContext::getDependentTemplateName(NestedNameSpecifier *NNS,
 7780   NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
 7801 ASTContext::getDependentTemplateName(NestedNameSpecifier *NNS,
 7816   NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
tools/clang/lib/AST/ASTDiagnostic.cpp
  418       NestedNameSpecifier *NNS = reinterpret_cast<NestedNameSpecifier*>(Val);
tools/clang/lib/AST/ASTImporter.cpp
  162     Expected<T *> import(T *From) {
  162     Expected<T *> import(T *From) {
  166       return cast_or_null<T>(*ToOrErr);
  170     Expected<T *> import(const T *From) {
  170     Expected<T *> import(const T *From) {
 8158 Expected<NestedNameSpecifier *>
 8159 ASTImporter::Import(NestedNameSpecifier *FromNNS) {
 8163   NestedNameSpecifier *Prefix = nullptr;
 8168   case NestedNameSpecifier::Identifier:
 8170     return NestedNameSpecifier::Create(ToContext, Prefix,
 8173   case NestedNameSpecifier::Namespace:
 8175       return NestedNameSpecifier::Create(ToContext, Prefix,
 8180   case NestedNameSpecifier::NamespaceAlias:
 8182       return NestedNameSpecifier::Create(ToContext, Prefix,
 8187   case NestedNameSpecifier::Global:
 8188     return NestedNameSpecifier::GlobalSpecifier(ToContext);
 8190   case NestedNameSpecifier::Super:
 8192       return NestedNameSpecifier::SuperSpecifier(ToContext,
 8197   case NestedNameSpecifier::TypeSpec:
 8198   case NestedNameSpecifier::TypeSpecWithTemplate:
 8202           FromNNS->getKind() == NestedNameSpecifier::TypeSpecWithTemplate;
 8203       return NestedNameSpecifier::Create(ToContext, Prefix, TSTemplate,
 8230     NestedNameSpecifier *Spec = nullptr;
 8234     NestedNameSpecifier::SpecifierKind Kind = Spec->getKind();
 8237     if (Kind != NestedNameSpecifier::Super) {
 8241       if (Kind != NestedNameSpecifier::Global)
 8247     case NestedNameSpecifier::Identifier:
 8252     case NestedNameSpecifier::Namespace:
 8257     case NestedNameSpecifier::NamespaceAlias:
 8262     case NestedNameSpecifier::TypeSpec:
 8263     case NestedNameSpecifier::TypeSpecWithTemplate: {
 8274     case NestedNameSpecifier::Global:
 8278     case NestedNameSpecifier::Super: {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  105                                      NestedNameSpecifier *NNS1,
  106                                      NestedNameSpecifier *NNS2);
  198                                      NestedNameSpecifier *NNS1,
  199                                      NestedNameSpecifier *NNS2) {
  203   NestedNameSpecifier *Prefix1 = NNS1->getPrefix(),
  213   case NestedNameSpecifier::Identifier:
  216   case NestedNameSpecifier::Namespace:
  219   case NestedNameSpecifier::NamespaceAlias:
  222   case NestedNameSpecifier::TypeSpec:
  223   case NestedNameSpecifier::TypeSpecWithTemplate:
  226   case NestedNameSpecifier::Global:
  228   case NestedNameSpecifier::Super:
tools/clang/lib/AST/ASTTypeTraits.cpp
  133   else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>())
  133   else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>())
  136     if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier())
tools/clang/lib/AST/DeclPrinter.cpp
  629       if (const NestedNameSpecifier *NS = D->getQualifier()) {
tools/clang/lib/AST/Expr.cpp
  509     auto *NNS = QualifierLoc.getNestedNameSpecifier();
tools/clang/lib/AST/ExprCXX.cpp
 1575   auto *NNS = getQualifier();
 1576   if (NNS && NNS->getKind() != NestedNameSpecifier::Super) {
tools/clang/lib/AST/ItaniumMangle.cpp
  453   void mangleUnresolvedPrefix(NestedNameSpecifier *qualifier,
  455   void mangleUnresolvedName(NestedNameSpecifier *qualifier,
  500   void manglePrefix(NestedNameSpecifier *qualifier);
  536                         NestedNameSpecifier *qualifier,
 1120 void CXXNameMangler::mangleUnresolvedPrefix(NestedNameSpecifier *qualifier,
 1138   case NestedNameSpecifier::Global:
 1148   case NestedNameSpecifier::Super:
 1151   case NestedNameSpecifier::Namespace:
 1159   case NestedNameSpecifier::NamespaceAlias:
 1168   case NestedNameSpecifier::TypeSpec:
 1169   case NestedNameSpecifier::TypeSpecWithTemplate: {
 1191   case NestedNameSpecifier::Identifier:
 1213     NestedNameSpecifier *qualifier, DeclarationName name,
 1784 void CXXNameMangler::manglePrefix(NestedNameSpecifier *qualifier) {
 1786   case NestedNameSpecifier::Global:
 1790   case NestedNameSpecifier::Super:
 1793   case NestedNameSpecifier::Namespace:
 1797   case NestedNameSpecifier::NamespaceAlias:
 1801   case NestedNameSpecifier::TypeSpec:
 1802   case NestedNameSpecifier::TypeSpecWithTemplate:
 1806   case NestedNameSpecifier::Identifier:
 1872   if (NestedNameSpecifier *Qualifier = Dependent->getQualifier())
 3494                                       NestedNameSpecifier *qualifier,
 3830     NestedNameSpecifier *Qualifier = PDE->getQualifier();
tools/clang/lib/AST/JSONNodeDumper.cpp
  671   if (const NestedNameSpecifier *NNS = ET->getQualifier()) {
  726   if (const NestedNameSpecifier *NNS = UD->getQualifier()) {
tools/clang/lib/AST/NestedNameSpecifier.cpp
   39 NestedNameSpecifier *
   41                                   const NestedNameSpecifier &Mockup) {
   46   NestedNameSpecifier *NNS
   50         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup);
   50         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup);
   57 NestedNameSpecifier *
   59                             NestedNameSpecifier *Prefix, IdentifierInfo *II) {
   63   NestedNameSpecifier Mockup;
   70 NestedNameSpecifier *
   72                             NestedNameSpecifier *Prefix,
   79   NestedNameSpecifier Mockup;
   86 NestedNameSpecifier *
   88                             NestedNameSpecifier *Prefix,
   95   NestedNameSpecifier Mockup;
  102 NestedNameSpecifier *
  104                             NestedNameSpecifier *Prefix,
  107   NestedNameSpecifier Mockup;
  114 NestedNameSpecifier *
  117   NestedNameSpecifier Mockup;
  124 NestedNameSpecifier *
  128         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier();
  128         new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier();
  132 NestedNameSpecifier *
  135   NestedNameSpecifier Mockup;
  142 NestedNameSpecifier::SpecifierKind NestedNameSpecifier::getKind() const {
  367 NestedNameSpecifierLoc::getLocalDataLength(NestedNameSpecifier *Qualifier) {
  374   case NestedNameSpecifier::Global:
  378   case NestedNameSpecifier::Identifier:
  379   case NestedNameSpecifier::Namespace:
  380   case NestedNameSpecifier::NamespaceAlias:
  381   case NestedNameSpecifier::Super:
  386   case NestedNameSpecifier::TypeSpecWithTemplate:
  387   case NestedNameSpecifier::TypeSpec:
  398 NestedNameSpecifierLoc::getDataLength(NestedNameSpecifier *Qualifier) {
  439   case NestedNameSpecifier::Global:
  442   case NestedNameSpecifier::Identifier:
  443   case NestedNameSpecifier::Namespace:
  444   case NestedNameSpecifier::NamespaceAlias:
  445   case NestedNameSpecifier::Super:
  449   case NestedNameSpecifier::TypeSpecWithTemplate:
  450   case NestedNameSpecifier::TypeSpec: {
  464   if (Qualifier->getKind() != NestedNameSpecifier::TypeSpec &&
  465       Qualifier->getKind() != NestedNameSpecifier::TypeSpecWithTemplate)
  575   Representation = NestedNameSpecifier::Create(Context, Representation,
  588   Representation = NestedNameSpecifier::Create(Context, Representation,
  600   Representation = NestedNameSpecifier::Create(Context, Representation,
  612   Representation = NestedNameSpecifier::Create(Context, Representation, Alias);
  622   Representation = NestedNameSpecifier::GlobalSpecifier(Context);
  632   Representation = NestedNameSpecifier::SuperSpecifier(Context, RD);
  640                                                 NestedNameSpecifier *Qualifier,
  647   SmallVector<NestedNameSpecifier *, 4> Stack;
  648   for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix())
  651     NestedNameSpecifier *NNS = Stack.pop_back_val();
  653       case NestedNameSpecifier::Identifier:
  654       case NestedNameSpecifier::Namespace:
  655       case NestedNameSpecifier::NamespaceAlias:
  659       case NestedNameSpecifier::TypeSpec:
  660       case NestedNameSpecifier::TypeSpecWithTemplate: {
  669       case NestedNameSpecifier::Global:
  670       case NestedNameSpecifier::Super:
tools/clang/lib/AST/ODRHash.cpp
  109 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) {
  111   const auto *Prefix = NNS->getPrefix();
  119   case NestedNameSpecifier::Identifier:
  122   case NestedNameSpecifier::Namespace:
  125   case NestedNameSpecifier::NamespaceAlias:
  128   case NestedNameSpecifier::TypeSpec:
  129   case NestedNameSpecifier::TypeSpecWithTemplate:
  132   case NestedNameSpecifier::Global:
  133   case NestedNameSpecifier::Super:
  686   void AddNestedNameSpecifier(const NestedNameSpecifier *NNS) {
tools/clang/lib/AST/OpenMPClause.cpp
 1420     NestedNameSpecifier *QualifierLoc =
 1443     NestedNameSpecifier *QualifierLoc =
 1465     NestedNameSpecifier *QualifierLoc =
 1558             NestedNameSpecifier *MapperNNS =
 1582       NestedNameSpecifier *MapperNNS =
 1602       NestedNameSpecifier *MapperNNS =
tools/clang/lib/AST/QualTypeNames.cpp
   30 static NestedNameSpecifier *createNestedNameSpecifier(
   45 static NestedNameSpecifier *createNestedNameSpecifier(
   49 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
   53 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier(
   54     const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix);
   60   NestedNameSpecifier *NNS = nullptr;
   70     NestedNameSpecifier *QNNS = getFullyQualifiedNestedNameSpecifier(
  186 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D,
  205     return NestedNameSpecifier::GlobalSpecifier(Ctx);
  211 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier(
  212     const ASTContext &Ctx, NestedNameSpecifier *Scope,
  215     case NestedNameSpecifier::Global:
  218     case NestedNameSpecifier::Namespace:
  221     case NestedNameSpecifier::NamespaceAlias:
  230     case NestedNameSpecifier::Identifier:
  236     case NestedNameSpecifier::Super:
  237     case NestedNameSpecifier::TypeSpec:
  238     case NestedNameSpecifier::TypeSpecWithTemplate: {
  264 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
  309     return NestedNameSpecifier::GlobalSpecifier(Ctx);
  316 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
  339 NestedNameSpecifier *createNestedNameSpecifier(const ASTContext &Ctx,
  349   return NestedNameSpecifier::Create(
  355 NestedNameSpecifier *createNestedNameSpecifier(const ASTContext &Ctx,
  359   return NestedNameSpecifier::Create(
  427   NestedNameSpecifier *Prefix = nullptr;
tools/clang/lib/AST/StmtPrinter.cpp
  370   if (NestedNameSpecifier *Qualifier
  954   if (NestedNameSpecifier *Qualifier = Node->getQualifier())
  965   if (NestedNameSpecifier *Qualifier = Node->getQualifier())
 1376   if (NestedNameSpecifier *Qualifier = Node->getQualifier())
 1767   if (NestedNameSpecifier *Qualifier =
 2128   if (NestedNameSpecifier *Qualifier = Node->getQualifier())
 2142   if (NestedNameSpecifier *Qualifier = Node->getQualifier())
tools/clang/lib/AST/StmtProfile.cpp
   61     virtual void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) = 0;
  150     void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override {
  208     void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override {
tools/clang/lib/AST/Type.cpp
 2702                          NestedNameSpecifier *NNS, const IdentifierInfo *Name,
 2725                                              NestedNameSpecifier *Qualifier,
tools/clang/lib/AST/TypePrinter.cpp
 1326     NestedNameSpecifier *Qualifier = T->getQualifier();
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp
  110     else if (const NestedNameSpecifier *NNS =
  111              DynNode.get<NestedNameSpecifier>())
  184   bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) {
  236   bool baseTraverse(const NestedNameSpecifier &NNS) {
  254   bool match(const T &Node) {
  281   bool traverse(const T &Node) {
  282     static_assert(IsBaseType<T>::value,
  387   bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
  494     } else if (auto *N = Node.get<NestedNameSpecifier>()) {
  505   template <typename T> void match(const T &Node) {
  548   void matchWithoutFilter(const T &Node, const MC &Matchers) {
  617   void matchDispatch(const NestedNameSpecifier *Node) {
  946 bool MatchASTVisitor::TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) {
 1064   } else if (NodeMatch.canConvertTo<NestedNameSpecifier>()) {
 1065     addMatcher(NodeMatch.convertTo<NestedNameSpecifier>(), Action);
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  802 const internal::VariadicAllOfMatcher<NestedNameSpecifier> nestedNameSpecifier;
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>());
  361     RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  368     RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  563       ASTNodeKind::getFromNodeKind<NestedNameSpecifier>(),
tools/clang/lib/CodeGen/CGCXX.cpp
  276                                            NestedNameSpecifier *Qual,
tools/clang/lib/CodeGen/CGExprCXX.cpp
  198   NestedNameSpecifier *Qualifier = HasQualifier ? ME->getQualifier() : nullptr;
  208     bool HasQualifier, NestedNameSpecifier *Qualifier, bool IsArrow,
tools/clang/lib/CodeGen/CodeGenFunction.h
 3644                                      NestedNameSpecifier *Qual,
 3691                                                NestedNameSpecifier *Qualifier,
tools/clang/lib/Index/IndexBody.cpp
  194     const NestedNameSpecifier *NNS = E->getQualifier();
tools/clang/lib/Index/IndexTypeSourceInfo.cpp
  175     const NestedNameSpecifier *NNS = DNT->getQualifier();
  247   case NestedNameSpecifier::Identifier:
  248   case NestedNameSpecifier::Global:
  249   case NestedNameSpecifier::Super:
  252   case NestedNameSpecifier::Namespace:
  256   case NestedNameSpecifier::NamespaceAlias:
  261   case NestedNameSpecifier::TypeSpec:
  262   case NestedNameSpecifier::TypeSpecWithTemplate:
tools/clang/lib/Index/USRGeneration.cpp
  620 static void printQualifier(llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  200       if (NestedNameSpecifier *NNS = DRE->getQualifier()) {
  201         if (NNS->getKind() == NestedNameSpecifier::TypeSpec &&
tools/clang/lib/Sema/DeclSpec.cpp
  119                                NestedNameSpecifier *Qualifier, SourceRange R) {
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
   79   NestedNameSpecifier *NNS = SS.getScopeRep();
  141   case NestedNameSpecifier::Identifier:
  144   case NestedNameSpecifier::Namespace:
  147   case NestedNameSpecifier::NamespaceAlias:
  150   case NestedNameSpecifier::TypeSpec:
  151   case NestedNameSpecifier::TypeSpecWithTemplate: {
  157   case NestedNameSpecifier::Global:
  160   case NestedNameSpecifier::Super:
  179 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) {
  358 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) {
  365   if (NNS->getKind() != NestedNameSpecifier::Identifier)
  989     NestedNameSpecifier *NNS;
 1028   NestedNameSpecifier *Qualifier = SS.getScopeRep();
 1045   case NestedNameSpecifier::Global:
 1046   case NestedNameSpecifier::Namespace:
 1047   case NestedNameSpecifier::NamespaceAlias:
 1052   case NestedNameSpecifier::Identifier:
 1053   case NestedNameSpecifier::TypeSpec:
 1054   case NestedNameSpecifier::TypeSpecWithTemplate:
 1055   case NestedNameSpecifier::Super:
tools/clang/lib/Sema/SemaCodeComplete.cpp
  664 static NestedNameSpecifier *
  679   NestedNameSpecifier *Result = nullptr;
  687       Result = NestedNameSpecifier::Create(Context, Result, Namespace);
  689       Result = NestedNameSpecifier::Create(
 1156           NestedNameSpecifier::Create(SemaRef.Context, nullptr, Namespace);
 1158       R.Qualifier = NestedNameSpecifier::Create(
 1279           NestedNameSpecifier::Create(SemaRef.Context, nullptr, Namespace);
 1281       R.Qualifier = NestedNameSpecifier::Create(
 3053                                            NestedNameSpecifier *Qualifier,
 3976       NestedNameSpecifier *NNS = getRequiredQualification(
 4235   NestedNameSpecifier *SuggestedQualifier = nullptr;
 4242   NestedNameSpecifier *Qualifier = Enumerators.SuggestedQualifier;
 5385   NestedNameSpecifier *NNS = SS.getScopeRep();
tools/clang/lib/Sema/SemaCoroutine.cpp
  123     auto *NNS = NestedNameSpecifier::Create(S.Context, nullptr, StdExp);
  123     auto *NNS = NestedNameSpecifier::Create(S.Context, nullptr, StdExp);
  124     NNS = NestedNameSpecifier::Create(S.Context, NNS, false,
tools/clang/lib/Sema/SemaDecl.cpp
  258   auto *NNS = NestedNameSpecifier::Create(Context, nullptr, false,
  258   auto *NNS = NestedNameSpecifier::Create(Context, nullptr, false,
  384       NestedNameSpecifier *NNS = Correction.getCorrectionSpecifier();
  524 static NestedNameSpecifier *
  530       return NestedNameSpecifier::Create(Context, nullptr, ND);
  532       return NestedNameSpecifier::Create(Context, nullptr, RD->isTemplateDecl(),
  535       return NestedNameSpecifier::GlobalSpecifier(Context);
  560   NestedNameSpecifier *NNS = nullptr;
  575     NNS = NestedNameSpecifier::Create(Context, nullptr, RD->isTemplateDecl(),
  643     if (SS->getScopeRep()->getKind() == NestedNameSpecifier::Super)
tools/clang/lib/Sema/SemaDeclCXX.cpp
 9562     auto *NNS =
 9563         NestedNameSpecifier::Create(Context, nullptr, getStdNamespace());
 9845   NestedNameSpecifier *Qualifier = nullptr;
 9859     if ((!Qualifier || Qualifier->getKind() == NestedNameSpecifier::Global) &&
10308                     NestedNameSpecifier *NNS, CXXRecordDecl *RequireMemberOf)
10340         NestedNameSpecifier *Specifier =
10382   NestedNameSpecifier *OldNNS;
10699   NestedNameSpecifier *Qual = SS.getScopeRep();
10735     NestedNameSpecifier *DQual;
12177                    NestedNameSpecifier::Create(S.Context, nullptr, false,
tools/clang/lib/Sema/SemaExpr.cpp
 2151   auto *NNS =
 2152       NestedNameSpecifier::Create(Context, nullptr, true, RD->getTypeForDecl());
tools/clang/lib/Sema/SemaExprCXX.cpp
   51   NestedNameSpecifier *NNS = SS.getScopeRep();
   56   case NestedNameSpecifier::TypeSpec:
   57   case NestedNameSpecifier::TypeSpecWithTemplate:
   61   case NestedNameSpecifier::Identifier:
   69   case NestedNameSpecifier::Global:
   70   case NestedNameSpecifier::Super:
   71   case NestedNameSpecifier::Namespace:
   72   case NestedNameSpecifier::NamespaceAlias:
  175     NestedNameSpecifier *NNS = SS.getScopeRep();
  201     NestedNameSpecifier *Prefix = nullptr;
  414   case NestedNameSpecifier::Identifier:
  415   case NestedNameSpecifier::TypeSpec:
  416   case NestedNameSpecifier::TypeSpecWithTemplate:
  425   case NestedNameSpecifier::Global:
  426   case NestedNameSpecifier::Super:
  427   case NestedNameSpecifier::Namespace:
  428   case NestedNameSpecifier::NamespaceAlias:
 7549   if (auto *NNS = TC.getCorrectionSpecifier())
 7560       if (auto *NNS = TC.getCorrectionSpecifier())
tools/clang/lib/Sema/SemaLookup.cpp
 2432   auto *NNS = SS.getScopeRep();
 2433   if (NNS && NNS->getKind() == NestedNameSpecifier::Super)
 2468     NestedNameSpecifier *NNS = SS->getScopeRep();
 2469     if (NNS->getKind() == NestedNameSpecifier::Super)
 4148     NestedNameSpecifier *NNS,
 4150   if (NestedNameSpecifier *Prefix = NNS->getPrefix())
 4158   case NestedNameSpecifier::Identifier:
 4162   case NestedNameSpecifier::Namespace:
 4168   case NestedNameSpecifier::NamespaceAlias:
 4172   case NestedNameSpecifier::TypeSpecWithTemplate:
 4173   case NestedNameSpecifier::TypeSpec:
 4177   case NestedNameSpecifier::Global:
 4178   case NestedNameSpecifier::Super:
 4220                                      NestedNameSpecifier *NNS, bool isKeyword) {
 4295   if (NestedNameSpecifier *NNS =
 4476   if (NestedNameSpecifier *NNS =
 4493                       NestedNameSpecifier::GlobalSpecifier(Context), 1};
 4517       NNS = NestedNameSpecifier::Create(Context, NNS, ND);
 4520       NNS = NestedNameSpecifier::Create(Context, NNS, RD->isTemplateDecl(),
 4530   NestedNameSpecifier *NNS = nullptr;
 4548     NNS = NestedNameSpecifier::GlobalSpecifier(Context);
 4569       NNS = NestedNameSpecifier::GlobalSpecifier(Context);
tools/clang/lib/Sema/SemaOverload.cpp
 5294                                           NestedNameSpecifier *Qualifier,
13375   NestedNameSpecifier *Qualifier = nullptr;
tools/clang/lib/Sema/SemaTemplate.cpp
  241       NestedNameSpecifier *Qualifier = SS.getScopeRep();
  316   NestedNameSpecifier *Qualifier = (NestedNameSpecifier*)SS->getScopeRep();
  694   if (NestedNameSpecifier *NNS = SS.getScopeRep())
 2563   while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) {
 2675       if (NestedNameSpecifier *NNS = DependentTST->getQualifier())
 2684       if (NestedNameSpecifier *NNS = DependentName->getQualifier())
 4456   NestedNameSpecifier *Qualifier = SS.getScopeRep();
 5491     bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
 5704                                                     NestedNameSpecifier *NNS) {
 5709   case NestedNameSpecifier::Identifier:
 5710   case NestedNameSpecifier::Namespace:
 5711   case NestedNameSpecifier::NamespaceAlias:
 5712   case NestedNameSpecifier::Global:
 5713   case NestedNameSpecifier::Super:
 5716   case NestedNameSpecifier::TypeSpec:
 5717   case NestedNameSpecifier::TypeSpecWithTemplate:
 6979       NestedNameSpecifier *Qualifier
 6980         = NestedNameSpecifier::Create(Context, nullptr, false,
 8914   for (NestedNameSpecifier *NNS = SS.getScopeRep(); NNS;
 9770   NestedNameSpecifier *NNS = SS.getScopeRep();
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 5305                            NestedNameSpecifier *NNS,
tools/clang/lib/Sema/SemaType.cpp
 3409       for (NestedNameSpecifier *NNS = D.getCXXScopeSpec().getScopeRep(); NNS;
 3411         if (NNS->getKind() == NestedNameSpecifier::Global)
 4928                           ->getKind() == NestedNameSpecifier::TypeSpec) ||
 4971         NestedNameSpecifier *NNS = SS.getScopeRep();
 4972         NestedNameSpecifier *NNSPrefix = NNS->getPrefix();
 4974         case NestedNameSpecifier::Identifier:
 4979         case NestedNameSpecifier::Namespace:
 4980         case NestedNameSpecifier::NamespaceAlias:
 4981         case NestedNameSpecifier::Global:
 4982         case NestedNameSpecifier::Super:
 4985         case NestedNameSpecifier::TypeSpec:
 4986         case NestedNameSpecifier::TypeSpecWithTemplate:
 5637       case NestedNameSpecifier::Identifier:
 5647       case NestedNameSpecifier::TypeSpec:
 5648       case NestedNameSpecifier::TypeSpecWithTemplate:
 5660       case NestedNameSpecifier::Namespace:
 5661       case NestedNameSpecifier::NamespaceAlias:
 5662       case NestedNameSpecifier::Global:
 5663       case NestedNameSpecifier::Super:
 8286   NestedNameSpecifier *NNS;
tools/clang/lib/Sema/TreeTransform.h
 3680     NestedNameSpecifier *QNNS = Q.getNestedNameSpecifier();
 3683     case NestedNameSpecifier::Identifier: {
 3692     case NestedNameSpecifier::Namespace: {
 3702     case NestedNameSpecifier::NamespaceAlias: {
 3712     case NestedNameSpecifier::Global:
 3718     case NestedNameSpecifier::Super: {
 3726     case NestedNameSpecifier::TypeSpecWithTemplate:
 3727     case NestedNameSpecifier::TypeSpec: {
tools/clang/lib/Serialization/ASTReader.cpp
 6681     NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx);
 6777     NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx);
 6788     NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx);
 9240     NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx);
 9247     NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx);
 9461 NestedNameSpecifier *
 9466   NestedNameSpecifier *NNS = nullptr, *Prev = nullptr;
 9468     NestedNameSpecifier::SpecifierKind Kind
 9471     case NestedNameSpecifier::Identifier: {
 9473       NNS = NestedNameSpecifier::Create(Context, Prev, II);
 9477     case NestedNameSpecifier::Namespace: {
 9479       NNS = NestedNameSpecifier::Create(Context, Prev, NS);
 9483     case NestedNameSpecifier::NamespaceAlias: {
 9485       NNS = NestedNameSpecifier::Create(Context, Prev, Alias);
 9489     case NestedNameSpecifier::TypeSpec:
 9490     case NestedNameSpecifier::TypeSpecWithTemplate: {
 9496       NNS = NestedNameSpecifier::Create(Context, Prev, Template, T);
 9500     case NestedNameSpecifier::Global:
 9501       NNS = NestedNameSpecifier::GlobalSpecifier(Context);
 9505     case NestedNameSpecifier::Super: {
 9507       NNS = NestedNameSpecifier::SuperSpecifier(Context, RD);
 9523     NestedNameSpecifier::SpecifierKind Kind
 9526     case NestedNameSpecifier::Identifier: {
 9533     case NestedNameSpecifier::Namespace: {
 9540     case NestedNameSpecifier::NamespaceAlias: {
 9547     case NestedNameSpecifier::TypeSpec:
 9548     case NestedNameSpecifier::TypeSpecWithTemplate: {
 9562     case NestedNameSpecifier::Global: {
 9568     case NestedNameSpecifier::Super: {
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 2841 static NamespaceDecl *getNamespace(const NestedNameSpecifier *X) {
 2849 static bool isSameQualifier(const NestedNameSpecifier *X,
 2850                             const NestedNameSpecifier *Y) {
 2861   case NestedNameSpecifier::Identifier:
 2865   case NestedNameSpecifier::Namespace:
 2866   case NestedNameSpecifier::NamespaceAlias:
 2869   case NestedNameSpecifier::TypeSpec:
 2870   case NestedNameSpecifier::TypeSpecWithTemplate:
 2875   case NestedNameSpecifier::Global:
 2876   case NestedNameSpecifier::Super:
 2881   auto *PX = X->getPrefix();
 2882   auto *PY = Y->getPrefix();
tools/clang/lib/Serialization/ASTWriter.cpp
 5869 void ASTRecordWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS) {
 5872   SmallVector<NestedNameSpecifier *, 8> NestedNames;
 5883     NestedNameSpecifier::SpecifierKind Kind = NNS->getKind();
 5886     case NestedNameSpecifier::Identifier:
 5890     case NestedNameSpecifier::Namespace:
 5894     case NestedNameSpecifier::NamespaceAlias:
 5898     case NestedNameSpecifier::TypeSpec:
 5899     case NestedNameSpecifier::TypeSpecWithTemplate:
 5901       Record->push_back(Kind == NestedNameSpecifier::TypeSpecWithTemplate);
 5904     case NestedNameSpecifier::Global:
 5908     case NestedNameSpecifier::Super:
 5930     NestedNameSpecifier::SpecifierKind Kind
 5934     case NestedNameSpecifier::Identifier:
 5939     case NestedNameSpecifier::Namespace:
 5944     case NestedNameSpecifier::NamespaceAlias:
 5949     case NestedNameSpecifier::TypeSpec:
 5950     case NestedNameSpecifier::TypeSpecWithTemplate:
 5951       Record->push_back(Kind == NestedNameSpecifier::TypeSpecWithTemplate);
 5957     case NestedNameSpecifier::Global:
 5961     case NestedNameSpecifier::Super:
tools/clang/lib/Tooling/Core/Lookup.cpp
  110 static bool isFullyQualified(const NestedNameSpecifier *NNS) {
  112     if (NNS->getKind() == NestedNameSpecifier::Global)
  183 std::string tooling::replaceNestedName(const NestedNameSpecifier *Use,
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  139 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) {
  172     const NestedNameSpecifier *Specifier;
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  605             NestedNameSpecifier::SpecifierKind::TypeSpec &&
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp
   47     NestedNameSpecifier *NNS = Callee->getQualifier();
   59         } else if (NNS->getPrefix()->getKind() == NestedNameSpecifier::Global) {
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
   50 static bool areEquivalentNameSpecifier(const NestedNameSpecifier *Left,
   51                                        const NestedNameSpecifier *Right) {
tools/clang/tools/extra/clang-tidy/misc/UnusedAliasDeclsCheck.cpp
   44   if (const auto *NestedName =
   45           Result.Nodes.getNodeAs<NestedNameSpecifier>("nns")) {
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  786     if (NestedNameSpecifier *Spec = Loc->getNestedNameSpecifier()) {
tools/clang/tools/extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
   21     const NestedNameSpecifier *NestedSpecifiers = ElType->getQualifier();
tools/clang/tools/extra/clangd/AST.cpp
  120   if (auto *Qual = D.getQualifier())
  134     if (auto *Qual = UD->getQualifier())
  152   if (auto *Qualifier = getQualifierLoc(ND).getNestedNameSpecifier())
tools/clang/tools/extra/clangd/CodeComplete.cpp
 1135   NestedNameSpecifier *NameSpec = (*Scope)->getScopeRep();
 1141   case NestedNameSpecifier::Global:
 1142   case NestedNameSpecifier::Namespace:
 1143   case NestedNameSpecifier::NamespaceAlias:
 1145   case NestedNameSpecifier::Super:
 1146   case NestedNameSpecifier::TypeSpec:
 1147   case NestedNameSpecifier::TypeSpecWithTemplate:
 1149   case NestedNameSpecifier::Identifier:
tools/clang/tools/extra/clangd/FindTarget.cpp
  302   void add(const NestedNameSpecifier *NNS, RelSet Flags) {
  307     case NestedNameSpecifier::Identifier:
  309     case NestedNameSpecifier::Namespace:
  312     case NestedNameSpecifier::NamespaceAlias:
  315     case NestedNameSpecifier::TypeSpec:
  316     case NestedNameSpecifier::TypeSpecWithTemplate:
  319     case NestedNameSpecifier::Global:
  322     case NestedNameSpecifier::Super:
  353   else if (const NestedNameSpecifier *NNS = N.get<NestedNameSpecifier>())
  353   else if (const NestedNameSpecifier *NNS = N.get<NestedNameSpecifier>())
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  242     if (auto *Nested = SS->getScopeRep()) {
  243       if (Nested->getKind() == NestedNameSpecifier::Global)
tools/clang/tools/extra/clangd/Selection.cpp
  240   bool TraverseNestedNameSpecifier(NestedNameSpecifier *) { return true; }
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  242     if (auto *NNS = NNSLoc.getNestedNameSpecifier()) {
  243       if (NNS->getKind() == NestedNameSpecifier::Namespace ||
  244           NNS->getKind() == NestedNameSpecifier::NamespaceAlias)
tools/clang/tools/extra/modularize/Modularize.cpp
  554   bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { return true; }
  745   bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { return true; }
tools/clang/tools/libclang/CIndex.cpp
 1317 bool CursorVisitor::VisitNestedNameSpecifier(NestedNameSpecifier *NNS, 
 1327   while (NestedNameSpecifier *Prefix = NNS->getPrefix())
 1331   case NestedNameSpecifier::Namespace:
 1335   case NestedNameSpecifier::NamespaceAlias:
 1339   case NestedNameSpecifier::TypeSpec: {
 1354   case NestedNameSpecifier::TypeSpecWithTemplate:
 1355   case NestedNameSpecifier::Global:
 1356   case NestedNameSpecifier::Identifier:
 1357   case NestedNameSpecifier::Super:
 1372     NestedNameSpecifier *NNS = Q.getNestedNameSpecifier();
 1374     case NestedNameSpecifier::Namespace:
 1382     case NestedNameSpecifier::NamespaceAlias:
 1390     case NestedNameSpecifier::TypeSpec:
 1391     case NestedNameSpecifier::TypeSpecWithTemplate:
 1397     case NestedNameSpecifier::Global:
 1398     case NestedNameSpecifier::Identifier:
 1399     case NestedNameSpecifier::Super:
tools/clang/tools/libclang/CursorVisitor.h
  245   bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range);
tools/clang/unittests/AST/ASTTypeTraitsTest.cpp
   25   return ASTNodeKind::getFromNodeKind<T>();
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
  421     if (Nodes->getNodeAs<T>(Id)) {
  425       } else if (const NestedNameSpecifier *NNS =
  426         Nodes->getNodeAs<NestedNameSpecifier>(Id)) {
usr/include/c++/7.4.0/type_traits
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1983     { typedef _Up     type; };