| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | Linkage.h | 45 explicit LVComputationKind(NamedDecl::ExplicitVisibilityKind EK) in LVComputationKind() 49 NamedDecl::ExplicitVisibilityKind getExplicitVisibilityKind() const { in getExplicitVisibilityKind() 50 return static_cast<NamedDecl::ExplicitVisibilityKind>(ExplicitKind); in getExplicitVisibilityKind() 54 return getExplicitVisibilityKind() == NamedDecl::VisibilityForType; in isTypeVisibility() 57 return getExplicitVisibilityKind() == NamedDecl::VisibilityForValue; in isValueVisibility() 62 LVComputationKind Result(NamedDecl::VisibilityForValue); in forLinkageOnly() 89 llvm::PointerIntPair<const NamedDecl *, 93 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey() 97 std::optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup() 105 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache() [all …]
|
| H A D | ASTImporterLookupTable.cpp | 40 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl() 93 dyn_cast_or_null<NamedDecl>(TU.getASTContext().getVaListTagDecl())) { in ASTImporterLookupTable() 104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() 110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() 126 void ASTImporterLookupTable::add(NamedDecl *ND) { in add() 135 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove() 144 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() 157 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced() 176 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains() 190 for (NamedDecl *ND : List) { in dump()
|
| /src/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | IdentifierResolver.h | 31 class NamedDecl; variable 45 using DeclsTy = SmallVector<NamedDecl *, 2>; 50 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl() 54 void RemoveDecl(NamedDecl *D); 57 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl() 73 using value_type = NamedDecl *; 74 using reference = NamedDecl *; 75 using pointer = NamedDecl *; 87 iterator(NamedDecl *D) { in iterator() 110 NamedDecl *operator*() const { [all …]
|
| H A D | Lookup.h | 304 bool isHiddenDeclarationVisible(NamedDecl *ND) const { in isHiddenDeclarationVisible() 372 static bool isVisible(Sema &SemaRef, NamedDecl *D); 374 static bool isReachable(Sema &SemaRef, NamedDecl *D); 376 static bool isAcceptable(Sema &SemaRef, NamedDecl *D, in isAcceptable() 404 static bool isAvailableForLookup(Sema &SemaRef, NamedDecl *ND); 408 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl() 419 static bool isAcceptableSlow(Sema &SemaRef, NamedDecl *D, 421 static bool isReachableSlow(Sema &SemaRef, NamedDecl *D); 422 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const; 475 void addDecl(NamedDecl *D) { in addDecl() [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;
|
| H A D | Sema.h | 157 class NamedDecl; variable 256 typedef std::pair<llvm::PointerUnion<const TemplateTypeParmType *, NamedDecl *>, 374 NamedDecl *Previous = nullptr; 375 NamedDecl *New = nullptr; 642 SmallVectorImpl<std::pair<NamedDecl *, SourceLocation>> &Undefined); 866 NamedDecl *getCurFunctionOrMethodDecl() const; 1343 bool SetMemberAccessSpecifier(NamedDecl *MemberDecl, 1344 NamedDecl *PrevMemberDecl, 1378 AccessResult CheckFriendAccess(NamedDecl *D); 1436 bool IsSimplyAccessible(NamedDecl *Decl, CXXRecordDecl *NamingClass, [all …]
|
| H A D | DelayedDiagnostic.h | 80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() 118 NamedDecl *Target; 139 const NamedDecl *ReferringDecl, 140 const NamedDecl *OffendingDecl, 179 const NamedDecl *getAvailabilityReferringDecl() const { in getAvailabilityReferringDecl() 184 const NamedDecl *getAvailabilityOffendingDecl() const { in getAvailabilityOffendingDecl() 237 const NamedDecl *ReferringDecl; 238 const NamedDecl *OffendingDecl;
|
| /src/contrib/llvm-project/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 34 std::random_access_iterator_tag, NamedDecl *, 35 std::ptrdiff_t, NamedDecl *, NamedDecl *> { 51 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() 52 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl() 57 NamedDecl *operator*() const { return getDecl(); } 58 NamedDecl *operator->() const { return **this; } 92 void addDecl(NamedDecl *D) { in addDecl() 96 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() 103 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace() [all …]
|
| H A D | DeclContextInternals.h | 87 else if (NewHead.is<NamedDecl *>()) in erase_if() 91 assert(NewLast && NewLast->is<NamedDecl *>() && "Not the tail?"); in erase_if() 96 void erase(NamedDecl *ND) { in erase() 97 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase() 137 if (NamedDecl *ND = getAsDecl()) in getASTContext() 144 NamedDecl *getAsDecl() const { in getAsDecl() 145 return getAsListAndHasExternal().getPointer().dyn_cast<NamedDecl *>(); in getAsDecl() 160 void remove(NamedDecl *D) { in remove() 167 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); }); in removeExternalDecls() 173 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls() [all …]
|
| H A D | DeclAccessPair.h | 26 class NamedDecl; variable 44 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make() 61 NamedDecl *getDecl() const { in getDecl() 63 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl() 67 void setDecl(NamedDecl *D) { in setDecl() 73 void set(NamedDecl *D, AccessSpecifier AS) { in set() 77 operator NamedDecl*() const { return getDecl(); } 78 NamedDecl *operator->() const { return getDecl(); }
|
| H A D | ODRDiagsEmitter.h | 140 const NamedDecl *FirstRecord, 142 const NamedDecl *SecondRecord, 146 const NamedDecl *FirstRecord, 148 const NamedDecl *SecondRecord, 151 bool diagnoseSubMismatchField(const NamedDecl *FirstRecord, 156 bool diagnoseSubMismatchTypedef(const NamedDecl *FirstRecord, 162 bool diagnoseSubMismatchVar(const NamedDecl *FirstRecord, 180 bool diagnoseSubMismatchObjCMethod(const NamedDecl *FirstObjCContainer, 190 diagnoseSubMismatchObjCProperty(const NamedDecl *FirstObjCContainer,
|
| H A D | ASTConcept.h | 30 class NamedDecl; variable 38 const NamedDecl *ConstraintOwner = nullptr; 45 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction() 66 const NamedDecl *ConstraintOwner, 140 NamedDecl *FoundDecl; 150 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference() 161 NamedDecl *FoundDecl, ConceptDecl *NamedConcept, 196 NamedDecl *getFoundDecl() const { in getFoundDecl() 269 NamedDecl *getFoundDecl() const { return ConceptRef->getFoundDecl(); } in getFoundDecl()
|
| H A D | Mangle.h | 36 class NamedDecl; variable 64 llvm::DenseMap<const NamedDecl*, uint64_t> AnonStructIds; 92 uint64_t getAnonymousStructId(const NamedDecl *D, 101 std::pair<llvm::DenseMap<const NamedDecl *, uint64_t>::iterator, bool> 106 uint64_t getAnonymousStructIdForDebugInfo(const NamedDecl *D) { in getAnonymousStructIdForDebugInfo() 107 llvm::DenseMap<const NamedDecl *, uint64_t>::iterator Result = in getAnonymousStructIdForDebugInfo() 120 bool shouldMangleDeclName(const NamedDecl *D); 121 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0; 124 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl() 149 const NamedDecl *ID, [all …]
|
| /src/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | NameSearchContext.h | 30 llvm::SmallVectorImpl<clang::NamedDecl *> &m_decls; 64 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext() 77 clang::NamedDecl *AddVarDecl(const CompilerType &type); 87 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false); 91 clang::NamedDecl *AddGenericFunDecl(); 98 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type); 113 void AddNamedDecl(clang::NamedDecl *decl);
|
| H A D | NameSearchContext.cpp | 16 clang::NamedDecl *NameSearchContext::AddVarDecl(const CompilerType &type) { in AddVarDecl() 30 clang::NamedDecl *Decl = VarDecl::Create( in AddVarDecl() 38 clang::NamedDecl *NameSearchContext::AddFunDecl(const CompilerType &type, in AddFunDecl() 130 clang::NamedDecl *NameSearchContext::AddGenericFunDecl() { in AddGenericFunDecl() 143 clang::NamedDecl * 154 return (NamedDecl *)typedef_name_decl; in AddTypeDecl() 165 m_decls.push_back((NamedDecl *)interface_decl); in AddTypeDecl() 167 return (NamedDecl *)interface_decl; in AddTypeDecl() 174 for (clang::NamedDecl *decl : result) in AddLookupResult() 178 void NameSearchContext::AddNamedDecl(clang::NamedDecl *decl) { in AddNamedDecl()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | IdentifierResolver.cpp | 77 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl() 155 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl() 172 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl() 180 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter() 197 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter() 220 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl() 252 return iterator(static_cast<NamedDecl*>(Ptr)); in begin() 276 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations() 316 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl() 330 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl() [all …]
|
| H A D | SemaLookup.cpp | 372 const NamedDecl *D, in isPreferredLookupResult() 373 const NamedDecl *Existing) { in isPreferredLookupResult() 465 static bool canHideTag(const NamedDecl *D) { in canHideTag() 498 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind() 509 llvm::SmallDenseMap<const NamedDecl *, unsigned, 16> Unique; in resolveKind() 516 const NamedDecl *HasNonFunction = nullptr; in resolveKind() 518 llvm::SmallVector<const NamedDecl *, 4> EquivalentNonFunctions; in resolveKind() 522 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind() 523 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind() 694 for (NamedDecl *D : *this) in dump() [all …]
|
| /src/contrib/llvm-project/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()
|
| /src/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | InterfaceStubFunctionsConsumer.cpp | 39 using MangledSymbols = std::map<const NamedDecl *, MangledSymbol>; 41 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl() 49 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl() 53 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl() 85 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl() 93 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl() 115 const NamedDecl *ParentDecl = getParentFunctionDecl(ND); in WriteNamedDecl() 148 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleDecls() 154 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations() 160 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations() [all …]
|
| /src/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.h | 26 class NamedDecl; variable 78 bool handleReference(const NamedDecl *D, SourceLocation Loc, 79 const NamedDecl *Parent, const DeclContext *DC, 100 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, 105 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, 111 const NamedDecl *Parent, 116 void indexBody(const Stmt *S, const NamedDecl *Parent,
|
| H A D | IndexDecl.cpp | 51 const NamedDecl *Parent, in handleTemplateArgumentLoc() 68 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in handleTemplateArgumentLoc() 89 const NamedDecl *Parent = nullptr, in handleDeclarator() 98 const NamedDecl *Parent) { in handleDeclarator() 177 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod() 205 gatherTemplatePseudoOverrides(const NamedDecl *D, in gatherTemplatePseudoOverrides() 219 for (const NamedDecl *ND : Pattern->lookup(D->getDeclName())) { in gatherTemplatePseudoOverrides() 610 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDecl() 628 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDirectiveDecl() 645 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingValueDecl() [all …]
|
| /src/contrib/llvm-project/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,
|
| H A D | RenamingAction.h | 56 const NamedDecl *getRenameDecl() const; 59 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences() 65 const NamedDecl *ND; 78 QualifiedRenameRule(const NamedDecl *ND, in QualifiedRenameRule() 86 const NamedDecl *ND;
|
| /src/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | TypedefUnderlyingTypeResolver.cpp | 21 const NamedDecl * 23 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl() 52 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getSymbolReferenceForType() 72 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getUSRForType()
|