Home
last modified time | relevance | path

Searched refs:getAsNamespace (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp157 if (const auto *Namespace = U->getQualifier()->getAsNamespace()) { in findInsertionPoint()
160 ->getAsNamespace() in findInsertionPoint()
216 std::string NamespaceStr = printNamespaceScope(*Namespace.getAsNamespace()); in isNamespaceForbidden()
317 !QualifierToRemove.getNestedNameSpecifier()->getAsNamespace() || in prepare()
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DNestedNameSpecifiers.cpp30 NNS.getNestedNameSpecifier()->getAsNamespace()) in TraverseNestedNameSpecifierLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMoveForwardingReferenceCheck.cpp53 } else if (const NamespaceDecl *Namespace = NNS->getAsNamespace()) { in replaceMoveWithForward()
/llvm-project-15.0.7/clang/lib/AST/
H A DNestedNameSpecifier.cpp169 NamespaceDecl *NestedNameSpecifier::getAsNamespace() const { in getAsNamespace() function in NestedNameSpecifier
263 if (getAsNamespace()->isAnonymousNamespace()) in print()
266 OS << getAsNamespace()->getName(); in print()
H A DQualTypeNames.cpp224 Ctx, Scope->getAsNamespace(), WithGlobalNsPrefix); in getFullyQualifiedNestedNameSpecifier()
H A DASTStructuralEquivalence.cpp439 return IsStructurallyEquivalent(Context, NNS1->getAsNamespace(), in IsStructurallyEquivalent()
440 NNS2->getAsNamespace()); in IsStructurallyEquivalent()
H A DODRHash.cpp123 AddDecl(NNS->getAsNamespace()); in AddNestedNameSpecifier()
H A DItaniumMangle.cpp1312 mangleSourceNameWithAbiTags(qualifier->getAsNamespace()); in mangleUnresolvedPrefix()
2039 mangleName(qualifier->getAsNamespace()); in manglePrefix()
H A DASTImporter.cpp9099 if (ExpectedDecl NSOrErr = Import(FromNNS->getAsNamespace())) { in Import()
9177 Builder.Extend(getToContext(), Spec->getAsNamespace(), ToLocalBeginLoc, in Import()
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h118 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace(); in TraverseNestedNameSpecifierLoc()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAbstractBasicWriter.h250 asImpl().writeNamespaceDeclRef(NNS->getAsNamespace()); in writeNestedNameSpecifier()
H A DNestedNameSpecifier.h185 NamespaceDecl *getAsNamespace() const;
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp289 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DDumpAST.cpp277 return NNS.getAsNamespace()->getNameAsString() + "::"; in getDetail()
H A DIncludeFixer.cpp399 } else if (const auto *NS = Nested->getAsNamespace()) { in extractUnresolvedNameCheaply()
H A DAST.cpp648 const auto *CanonNSD = NNS->getAsNamespace()->getCanonicalDecl(); in getQualification()
H A DFindTarget.cpp473 add(NNS->getAsNamespace(), Flags); in add()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp345 if (const NamespaceDecl *Decl = Spec->getAsNamespace()) { in check()
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp106 const NamespaceDecl *NS = NNS->getAsNamespace(); in getFragmentsForNNS()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp145 return NNS->getAsNamespace(); in computeDeclContext()
H A DSemaLookup.cpp4507 if (NNS->getAsNamespace()->isAnonymousNamespace()) in getNestedNameSpecifierIdentifiers()
4509 II = NNS->getAsNamespace()->getIdentifier(); in getNestedNameSpecifierIdentifiers()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7522 if (!Node.getAsNamespace()) in AST_MATCHER_P()
7524 return InnerMatcher.matches(*Node.getAsNamespace(), Finder, Builder); in AST_MATCHER_P()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRefactoringTest.cpp753 if (const NamespaceDecl* NS = NNSLoc.getNestedNameSpecifier()->getAsNamespace()) { in TraverseNestedNameSpecifierLoc()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDeclCXX.cpp637 !D.SS.getScopeRep()->getAsNamespace() && in ParseUsingDeclarator()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp1429 MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(), TU)); in VisitNestedNameSpecifier()
1471 if (Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), in VisitNestedNameSpecifierLoc()

12