/external/clang/include/clang/AST/ |
D | DeclContextInternals.h | 35 typedef SmallVector<NamedDecl *, 4> DeclsTy; 44 llvm::PointerUnion<NamedDecl*, DeclsAndHasExternalTy> Data; 50 RHS.Data = (NamedDecl *)nullptr; in StoredDeclsList() 63 RHS.Data = (NamedDecl *)nullptr; 69 NamedDecl *getAsDecl() const { in getAsDecl() 70 return Data.dyn_cast<NamedDecl *>(); in getAsDecl() 90 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls() 96 void setOnlyValue(NamedDecl *ND) { in setOnlyValue() 101 assert(*(NamedDecl **)&Data == ND && in setOnlyValue() 105 void remove(NamedDecl *D) { in remove() [all …]
|
D | DeclAccessPair.h | 26 class NamedDecl; variable 36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make() 42 NamedDecl *getDecl() const { in getDecl() 43 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl() 49 void setDecl(NamedDecl *D) { in setDecl() 55 void set(NamedDecl *D, AccessSpecifier AS) { in set() 59 operator NamedDecl*() const { return getDecl(); } 60 NamedDecl *operator->() const { return getDecl(); }
|
D | UnresolvedSet.h | 48 typedef NamedDecl *value_type; 49 typedef NamedDecl **pointer; 50 typedef NamedDecl *reference; 53 NamedDecl *getDecl() const { return ir->getDecl(); } in getDecl() 54 void setDecl(NamedDecl *ND) const { return ir->setDecl(ND); } in setDecl() 59 NamedDecl *operator*() const { return getDecl(); } 115 void addDecl(NamedDecl *D) { in addDecl() 119 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() 126 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace() 135 void replace(iterator I, NamedDecl *New) { in replace() [all …]
|
D | DependentDiagnostic.h | 31 class NamedDecl; variable 44 NamedDecl *TargetDecl, in Create() 77 NamedDecl *getAccessTarget() const { in getAccessTarget() 82 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass() 115 NamedDecl *TargetDecl;
|
D | DeclTemplate.h | 63 NamedDecl **Params, unsigned NumParams, 70 NamedDecl **Params, 75 typedef NamedDecl** iterator; 78 typedef NamedDecl* const* const_iterator; 80 iterator begin() { return reinterpret_cast<NamedDecl **>(this + 1); } in begin() 82 return reinterpret_cast<NamedDecl * const *>(this + 1); in begin() 89 ArrayRef<NamedDecl*> asArray() { in asArray() 90 return ArrayRef<NamedDecl*>(begin(), size()); in asArray() 92 ArrayRef<const NamedDecl*> asArray() const { in asArray() 93 return ArrayRef<const NamedDecl*>(begin(), size()); in asArray() [all …]
|
D | Mangle.h | 32 class NamedDecl; variable 92 bool shouldMangleDeclName(const NamedDecl *D); 93 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0; 97 void mangleName(const NamedDecl *D, raw_ostream &); 98 virtual void mangleCXXName(const NamedDecl *D, raw_ostream &) = 0; 117 const NamedDecl *ID,
|
D | ASTUnresolvedSet.h | 50 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl() 57 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace() 104 Impl.addDecl(C, reinterpret_cast<NamedDecl*>(ID << 2), AS); in addLazyDecl()
|
D | DeclCXX.h | 49 NamedDecl *Function; 51 AnyFunctionDecl(NamedDecl *ND) : Function(ND) { } in AnyFunctionDecl() 59 operator NamedDecl *() const { return Function; } 62 NamedDecl *get() const { return Function; } in get() 64 static AnyFunctionDecl getFromNamedDecl(NamedDecl *ND) { in getFromNamedDecl() 81 static_cast< ::clang::NamedDecl*>(P)); in getFromVoidPointer() 1082 void removeConversion(const NamedDecl *Old); 2536 class UsingDirectiveDecl : public NamedDecl { 2548 NamedDecl *NominatedNamespace; 2566 NamedDecl *Nominated, in UsingDirectiveDecl() [all …]
|
/external/clang/include/clang/Sema/ |
D | IdentifierResolver.h | 28 class NamedDecl; variable 43 typedef SmallVector<NamedDecl*, 2> DeclsTy; 48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl() 52 void RemoveDecl(NamedDecl *D); 55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl() 70 typedef NamedDecl * value_type; 71 typedef NamedDecl * reference; 72 typedef NamedDecl * pointer; 86 iterator(NamedDecl *D) { in iterator() 109 NamedDecl *operator*() const { [all …]
|
D | Lookup.h | 289 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible() 304 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl() 315 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D); 316 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const; 369 void addDecl(NamedDecl *D) { in addDecl() 375 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl() 453 NamedDecl *getFoundDecl() const { in getFoundDecl() 460 NamedDecl *getRepresentativeDecl() const { in getRepresentativeDecl() 573 NamedDecl *next() { in next() 591 void replace(NamedDecl *D) { in replace() [all …]
|
D | TypoCorrection.h | 41 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, 52 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, 132 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl() 146 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() 152 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() 159 void addCorrectionDecl(NamedDecl *CDecl); 211 typedef SmallVectorImpl<NamedDecl *>::iterator decl_iterator; 216 typedef SmallVectorImpl<NamedDecl *>::const_iterator const_decl_iterator; 235 SmallVector<NamedDecl *, 1> CorrectionDecls;
|
D | DelayedDiagnostic.h | 70 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() 106 NamedDecl *Target; 127 const NamedDecl *D, 167 const NamedDecl *getDeprecationDecl() const { in getDeprecationDecl() 214 const NamedDecl *Decl;
|
/external/clang/lib/Sema/ |
D | IdentifierResolver.cpp | 70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl() 139 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl() 156 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl() 164 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter() 181 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter() 204 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl() 233 return iterator(static_cast<NamedDecl*>(Ptr)); in begin() 255 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations() 290 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl() 304 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl() [all …]
|
D | SemaCXXScopeSpec.cpp | 251 bool Sema::isAcceptableNestedNameSpecifier(const NamedDecl *SD) { in isAcceptableNestedNameSpecifier() 283 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() 301 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope() 351 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>()) in isNonTypeNestedNameSpecifier() 419 NamedDecl *ScopeLookupResult, in BuildCXXNestedNameSpecifier() 527 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier() 534 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier() 563 if (NamedDecl *ND = Corrected.getCorrectionDecl()) in BuildCXXNestedNameSpecifier() 571 NamedDecl *SD = Found.getAsSingle<NamedDecl>(); in BuildCXXNestedNameSpecifier() 585 NamedDecl *OuterDecl; in BuildCXXNestedNameSpecifier() [all …]
|
D | SemaLookup.cpp | 366 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind() 377 llvm::SmallPtrSet<NamedDecl*, 16> Unique; in resolveKind() 388 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind() 389 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind() 538 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin() 676 NamedDecl *D = *I; in LookupDirect() 930 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() 1006 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName() 1095 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() 1231 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow() [all …]
|
/external/clang/tools/libclang/ |
D | IndexingContext.h | 47 const NamedDecl *Dcl; 378 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, 381 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, 385 const NamedDecl *Parent, 390 void indexBody(const Stmt *S, const NamedDecl *Parent, 431 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, 432 const NamedDecl *Parent, 437 bool handleReference(const NamedDecl *D, SourceLocation Loc, 438 const NamedDecl *Parent, 465 bool handleDecl(const NamedDecl *D, [all …]
|
D | IndexTypeSourceInfo.cpp | 20 const NamedDecl *Parent; 24 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent, in TypeIndexer() 97 const NamedDecl *Parent, in indexTypeSourceInfo() 106 const NamedDecl *Parent, in indexTypeLoc() 117 const NamedDecl *Parent, in indexNestedNameSpecifierLoc()
|
/external/lldb/include/lldb/Expression/ |
D | ClangASTSource.h | 431 …llvm::SmallVectorImpl<clang::NamedDecl*> &m_decls; ///< The list of declarations already … 462 llvm::SmallVectorImpl<clang::NamedDecl*> &decls, in NameSearchContext() 480 clang::NamedDecl *AddVarDecl(const ClangASTType &type); 489 clang::NamedDecl *AddFunDecl(const ClangASTType &type); 496 clang::NamedDecl *AddGenericFunDecl(); 505 clang::NamedDecl *AddTypeDecl(const ClangASTType &clang_type); 525 void AddNamedDecl (clang::NamedDecl *decl);
|
/external/clang/lib/AST/ |
D | Mangle.cpp | 58 static bool isExternC(const NamedDecl *ND) { in isExternC() 65 const NamedDecl *ND) { in getStdOrFastCallMangling() 93 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName() 112 void MangleContext::mangleName(const NamedDecl *D, raw_ostream &Out) { in mangleName() 173 const NamedDecl *ID, in mangleGlobalBlock() 218 const NamedDecl *ND = cast<NamedDecl>(DC); in mangleBlock()
|
D | Decl.cpp | 101 LVForType = NamedDecl::VisibilityForType, 106 LVForValue = NamedDecl::VisibilityForValue, 143 static Optional<Visibility> getExplicitVisibility(const NamedDecl *D, in getExplicitVisibility() 147 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind); in getExplicitVisibility() 152 static bool usesTypeVisibility(const NamedDecl *D) { in usesTypeVisibility() 193 static Optional<Visibility> getVisibilityOf(const NamedDecl *D, in getVisibilityOf() 194 NamedDecl::ExplicitVisibilityKind kind) { in getVisibilityOf() 197 if (kind == NamedDecl::VisibilityForType) { in getVisibilityOf() 233 for (const NamedDecl *P : *Params) { in getLVForTemplateParameterList() 285 static LinkageInfo getLVForDecl(const NamedDecl *D, [all …]
|
D | ItaniumMangle.cpp | 101 static const NamedDecl *getStructor(const NamedDecl *decl) { in getStructor() 106 static bool isLambda(const NamedDecl *ND) { in isLambda() 119 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier; 129 bool shouldMangleCXXName(const NamedDecl *D) override; 133 void mangleCXXName(const NamedDecl *D, raw_ostream &) override; 163 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator() 205 const NamedDecl *Structor; 256 const NamedDecl *D = nullptr) in CXXNameMangler() 285 void mangle(const NamedDecl *D, StringRef Prefix = "_Z"); 292 void mangleName(const NamedDecl *ND); [all …]
|
D | DeclFriend.cpp | 33 if (Friend.is<NamedDecl*>()) { in Create() 34 NamedDecl *D = Friend.get<NamedDecl*>(); in Create()
|
/external/lldb/source/Symbol/ |
D | ClangASTImporter.cpp | 94 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(decl)) in CopyDecl() 122 std::set<NamedDecl *> decls_to_deport; in DeportType() 123 std::set<NamedDecl *> decls_already_deported; in DeportType() 158 std::set<NamedDecl *> decls_to_deport; in DeportDecl() 159 std::set<NamedDecl *> decls_already_deported; in DeportDecl() 454 ClangASTImporter::Minion::InitDeportWorkQueues (std::set<clang::NamedDecl *> *decls_to_deport, in InitDeportWorkQueues() 455 … std::set<clang::NamedDecl *> *decls_already_deported) in InitDeportWorkQueues() 474 NamedDecl *decl = *m_decls_to_deport->begin(); in ExecuteDeportWorkQueues() 585 if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) in Imported() 640 NamedDecl *to_named_decl = dyn_cast<NamedDecl>(to); in Imported()
|
/external/clang/lib/Analysis/ |
D | ThreadSafety.cpp | 112 const NamedDecl* getNamedDecl() const { in getNamedDecl() 114 return reinterpret_cast<const NamedDecl*>(Data); in getNamedDecl() 117 const NamedDecl* getFunctionDecl() const { in getFunctionDecl() 119 return reinterpret_cast<const NamedDecl*>(Data); in getFunctionDecl() 172 const NamedDecl* AttrDecl; // The decl to which the attribute is attached. 179 CallingContext(const NamedDecl *D) in CallingContext() 209 unsigned makeNamedVar(const NamedDecl *D) { in makeNamedVar() 213 unsigned makeLocalVar(const NamedDecl *D) { in makeLocalVar() 221 unsigned makeDot(const NamedDecl *D, bool Arrow) { in makeDot() 225 unsigned makeCall(unsigned NumArgs, const NamedDecl *D) { in makeCall() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | ObjCSelfInitChecker.cpp | 52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND); 174 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostObjCMessage() 201 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostStmt() 214 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreStmt() 242 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreCall() 270 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostCall() 305 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkLocation() 387 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) { in shouldRunOnFunctionOrMethod()
|