| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | IdentifierResolver.h | 31 class NamedDecl; variable 45 using DeclsTy = SmallVector<NamedDecl *, 2>; 54 void RemoveDecl(NamedDecl *D); 73 using value_type = NamedDecl *; 74 using reference = NamedDecl *; 75 using pointer = NamedDecl *; 87 iterator(NamedDecl *D) { in iterator() 110 NamedDecl *operator*() const { 114 return reinterpret_cast<NamedDecl*>(Ptr); 159 void AddDecl(NamedDecl *D); [all …]
|
| H A D | Lookup.h | 385 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl() 399 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const; 452 void addDecl(NamedDecl *D) { in addDecl() 543 NamedDecl *getFoundDecl() const { in getFoundDecl() 669 NamedDecl *next() { in next() 687 void replace(NamedDecl *D) { in replace() 812 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, 826 llvm::MapVector<NamedDecl*, NamedDecl*> Decls; 829 NamedDecl *operator()(std::pair<NamedDecl*, NamedDecl*> P) const { in operator() 836 void insert(NamedDecl *D); [all …]
|
| H A D | TypoCorrection.h | 59 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, 68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, 146 NamedDecl *getFoundDecl() const { in getFoundDecl() 151 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl() 166 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() 172 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() 179 void addCorrectionDecl(NamedDecl *CDecl); 230 using decl_iterator = SmallVectorImpl<NamedDecl *>::iterator; 238 using const_decl_iterator = SmallVectorImpl<NamedDecl *>::const_iterator; 268 SmallVector<NamedDecl *, 1> CorrectionDecls;
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Linkage.h | 42 explicit LVComputationKind(NamedDecl::ExplicitVisibilityKind EK) in LVComputationKind() 46 NamedDecl::ExplicitVisibilityKind getExplicitVisibilityKind() const { in getExplicitVisibilityKind() 51 return getExplicitVisibilityKind() == NamedDecl::VisibilityForType; in isTypeVisibility() 59 LVComputationKind Result(NamedDecl::VisibilityForValue); in forLinkageOnly() 86 llvm::PointerIntPair<const NamedDecl *, 94 llvm::Optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup() 124 LinkageInfo getLVForNamespaceScopeDecl(const NamedDecl *D, 128 LinkageInfo getLVForClassMember(const NamedDecl *D, 135 LinkageInfo getLVForLocalDecl(const NamedDecl *D, 146 LinkageInfo computeLVForDecl(const NamedDecl *D, [all …]
|
| H A D | ASTImporterLookupTable.cpp | 40 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl() 90 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() 96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() 112 void ASTImporterLookupTable::add(NamedDecl *ND) { in add() 121 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove() 130 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() 143 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced() 162 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains() 176 for (NamedDecl *ND : List) { in dump()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | HeuristicResolver.h | 22 class NamedDecl; variable 51 std::vector<const NamedDecl *> 53 std::vector<const NamedDecl *> 55 std::vector<const NamedDecl *> 57 std::vector<const NamedDecl *> 59 std::vector<const NamedDecl *> 61 std::vector<const NamedDecl *> 63 std::vector<const NamedDecl *> resolveTemplateSpecializationType( 89 std::vector<const NamedDecl *> resolveDependentMember( 91 llvm::function_ref<bool(const NamedDecl *ND)> Filter) const; [all …]
|
| H A D | HeuristicResolver.cpp | 19 const auto NoFilter = [](const NamedDecl *D) { return true; }; in __anon51be05cd0102() 20 const auto NonStaticFilter = [](const NamedDecl *D) { in __anon51be05cd0202() 23 const auto StaticFilter = [](const NamedDecl *D) { in __anon51be05cd0302() 28 const auto TemplateFilter = [](const NamedDecl *D) { in __anon51be05cd0602() 91 std::vector<const NamedDecl *> HeuristicResolver::resolveMemberExpr( in resolveMemberExpr() 139 std::vector<const NamedDecl *> 155 std::vector<const NamedDecl *> 177 std::vector<const NamedDecl *> 197 std::vector<const NamedDecl *> 218 std::vector<const NamedDecl *> Decls = resolveExprToDecls(E); in resolveExprToType() [all …]
|
| H A D | AST.h | 47 std::string printQualifiedName(const NamedDecl &ND); 61 std::string printName(const ASTContext &Ctx, const NamedDecl &ND); 67 std::string printTemplateSpecializationArgs(const NamedDecl &ND); 129 bool isImplicitTemplateInstantiation(const NamedDecl *D); 138 bool isExplicitTemplateSpecialization(const NamedDecl *D); 144 NestedNameSpecifierLoc getQualifierLoc(const NamedDecl &ND); 165 NamedDecl *getOnlyInstantiation(NamedDecl *TemplatedDecl); 187 const NamedDecl *ND); 202 const NamedDecl *ND,
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTImporterLookupTable.h | 24 class NamedDecl; variable 52 using DeclList = llvm::SmallSetVector<NamedDecl *, 2>; 56 void add(DeclContext *DC, NamedDecl *ND); 57 void remove(DeclContext *DC, NamedDecl *ND); 63 void add(NamedDecl *ND); 64 void remove(NamedDecl *ND); 76 void update(NamedDecl *ND, DeclContext *OldDC); 80 void updateForced(NamedDecl *ND, DeclContext *OldDC); 86 bool contains(DeclContext *DC, NamedDecl *ND) const;
|
| H A D | UnresolvedSet.h | 28 class NamedDecl; variable 35 std::ptrdiff_t, NamedDecl *, NamedDecl *> { 50 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() 51 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl() 56 NamedDecl *operator*() const { return getDecl(); } 57 NamedDecl *operator->() const { return **this; } 91 void addDecl(NamedDecl *D) { in addDecl() 95 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() 102 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace() 111 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } in replace() [all …]
|
| H A D | DeclAccessPair.h | 25 class NamedDecl; variable 35 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make() 41 NamedDecl *getDecl() const { in getDecl() 42 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl() 48 void setDecl(NamedDecl *D) { in setDecl() 54 void set(NamedDecl *D, AccessSpecifier AS) { in set() 58 operator NamedDecl*() const { return getDecl(); } 59 NamedDecl *operator->() const { return getDecl(); }
|
| H A D | DeclContextInternals.h | 84 void erase(NamedDecl *ND) { in erase() 85 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase() 125 if (NamedDecl *ND = getAsDecl()) in getASTContext() 132 NamedDecl *getAsDecl() const { in getAsDecl() 148 void remove(NamedDecl *D) { in remove() 164 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls() 167 for (NamedDecl *D : Decls) in replaceExternalDecls() 215 void addOrReplaceDecl(NamedDecl *D) { in addOrReplaceDecl() 224 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl() 248 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl() [all …]
|
| H A D | Mangle.h | 35 class NamedDecl; variable 63 llvm::DenseMap<const NamedDecl*, uint64_t> AnonStructIds; 90 uint64_t getAnonymousStructId(const NamedDecl *D) { in getAnonymousStructId() 96 uint64_t getAnonymousStructIdForDebugInfo(const NamedDecl *D) { in getAnonymousStructIdForDebugInfo() 97 llvm::DenseMap<const NamedDecl *, uint64_t>::iterator Result = in getAnonymousStructIdForDebugInfo() 110 bool shouldMangleDeclName(const NamedDecl *D); 111 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0; 114 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl() 138 const NamedDecl *ID, 163 virtual void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl, [all …]
|
| H A D | ASTConcept.h | 31 const NamedDecl *ConstraintOwner = nullptr; 38 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction() 59 const NamedDecl *ConstraintOwner, 115 NamedDecl *FoundDecl; 126 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference() 148 NamedDecl *getFoundDecl() const { in getFoundDecl() 174 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in TypeConstraint()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | NameSearchContext.h | 30 llvm::SmallVectorImpl<clang::NamedDecl *> &m_decls; 65 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext() 78 clang::NamedDecl *AddVarDecl(const CompilerType &type); 88 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false); 92 clang::NamedDecl *AddGenericFunDecl(); 99 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type); 114 void AddNamedDecl(clang::NamedDecl *decl);
|
| H A D | NameSearchContext.cpp | 16 clang::NamedDecl *NameSearchContext::AddVarDecl(const CompilerType &type) { in AddVarDecl() 31 clang::NamedDecl *Decl = VarDecl::Create( in AddVarDecl() 39 clang::NamedDecl *NameSearchContext::AddFunDecl(const CompilerType &type, in AddFunDecl() 132 clang::NamedDecl *NameSearchContext::AddGenericFunDecl() { in AddGenericFunDecl() 145 clang::NamedDecl * 156 return (NamedDecl *)typedef_name_decl; in AddTypeDecl() 167 m_decls.push_back((NamedDecl *)interface_decl); in AddTypeDecl() 169 return (NamedDecl *)interface_decl; in AddTypeDecl() 176 for (clang::NamedDecl *decl : result) in AddLookupResult() 180 void NameSearchContext::AddNamedDecl(clang::NamedDecl *decl) { in AddNamedDecl()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | IdentifierResolver.cpp | 74 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl() 146 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl() 163 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl() 171 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter() 188 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter() 211 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl() 240 return iterator(static_cast<NamedDecl*>(Ptr)); in begin() 264 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations() 304 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl() 318 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFinder.cpp | 43 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence() 58 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl() 70 const NamedDecl *Result = nullptr; 77 const NamedDecl *getNamedDeclAt(const ASTContext &Context, in getNamedDeclAt() 108 bool VisitNamedDecl(const NamedDecl *ND) { in VisitNamedDecl() 119 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl() 122 const NamedDecl *Result = nullptr; 128 const NamedDecl *getNamedDeclFor(const ASTContext &Context, in getNamedDeclFor()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InterfaceStubFunctionsConsumer.cpp | 48 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl() 84 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl() 114 const NamedDecl *ParentDecl = getParentFunctionDecl(ND); in WriteNamedDecl() 147 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleDecls() 153 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations() 159 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations() 245 bool VisitNamedDecl(NamedDecl *ND) { in HandleTranslationUnit() 261 std::set<const NamedDecl *> LateParsedDecls; in HandleTranslationUnit() 262 std::set<NamedDecl *> NamedDecls; in HandleTranslationUnit() 283 for (const NamedDecl *ND : v.ValueDecls) in HandleTranslationUnit() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | NamedDeclPrinterTest.cpp | 37 std::function<void(llvm::raw_ostream &OS, const NamedDecl *)> Printer; 41 std::function<void(llvm::raw_ostream &OS, const NamedDecl *)> Printer) in PrintMatch() 45 const NamedDecl *ND = Result.Nodes.getNodeAs<NamedDecl>("id"); in run() 69 std::function<void(llvm::raw_ostream &, const NamedDecl *)> Print) { in PrintedDeclMatches() 70 return PrintedNodeMatches<NamedDecl>( in PrintedDeclMatches() 73 const NamedDecl *ND, in PrintedDeclMatches() 83 [=](llvm::raw_ostream &Out, const NamedDecl *ND) { in PrintedNamedDeclMatches() 128 [](llvm::raw_ostream &Out, const NamedDecl *D) { in PrintedNestedNameSpecifierMatches()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexingContext.h | 26 class NamedDecl; variable 78 bool handleReference(const NamedDecl *D, SourceLocation Loc, 79 const NamedDecl *Parent, 102 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, 107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, 113 const NamedDecl *Parent, 118 void indexBody(const Stmt *S, const NamedDecl *Parent,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ConfusableIdentifierCheck.cpp | 96 static bool mayShadowImpl(const NamedDecl *ND0, const NamedDecl *ND1) { in mayShadowImpl() 114 static bool isMemberOf(const NamedDecl *ND, const CXXRecordDecl *RD) { in isMemberOf() 124 static bool mayShadow(const NamedDecl *ND0, const NamedDecl *ND1) { in mayShadow() 149 if (const auto *ND = Result.Nodes.getNodeAs<NamedDecl>("nameddecl")) { in check() 152 llvm::SmallVector<const NamedDecl *> &Mapped = Mapper[skeleton(NDName)]; in check() 153 for (const NamedDecl *OND : Mapped) { in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.h | 143 std::vector<const NamedDecl *> &getMovedDecls() { return MovedDecls; } in getMovedDecls() 148 void addRemovedDecl(const NamedDecl *Decl); 150 llvm::SmallPtrSet<const NamedDecl *, 8> &getUnremovedDeclsInOldHeader() { in getUnremovedDeclsInOldHeader() 170 std::vector<const NamedDecl *> MovedDecls; 172 std::vector<const NamedDecl *> RemovedDecls; 180 std::vector<const NamedDecl *> HelperDeclarations; 182 llvm::SmallPtrSet<const NamedDecl*, 8> UnremovedDeclsInOldHeader;
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | ppc64-sibcall-shrinkwrap.ll | 8 %"class.clang::NamedDecl" = type { i32 } 12 %"class.clang::NamedDecl"* %this) { 14 %tobool = icmp eq %"class.clang::NamedDecl"* %this, null 23 %"class.clang::NamedDecl", 24 %"class.clang::NamedDecl"* %this, i64 0, i32 0 27 %"class.clang::NamedDecl"* %this, 41 %"class.clang::NamedDecl"* %D,
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.h | 26 class NamedDecl; variable 37 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl); 40 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
|