Searched refs:OldD (Results 1 - 6 of 6) sorted by relevance
/external/clang/include/clang/AST/ |
H A D | DeclContextInternals.h | 90 if (NamedDecl *OldD = getAsDecl()) 91 VT->push_back(OldD); 166 if (NamedDecl *OldD = getAsDecl()) { 167 if (!D->declarationReplaces(OldD, IsKnownNewer)) 177 NamedDecl *OldD = *OD; local 178 if (D->declarationReplaces(OldD, IsKnownNewer)) { 195 if (NamedDecl *OldD = getAsDecl()) { 197 VT->push_back(OldD);
|
H A D | Decl.h | 220 /// declaration OldD if introduced into scope. A declaration will 227 /// than \p OldD (for instance, if this declaration is newly-created). 228 bool declarationReplaces(NamedDecl *OldD, bool IsKnownNewer = true) const;
|
/external/clang/lib/AST/ |
H A D | Decl.cpp | 1514 bool NamedDecl::declarationReplaces(NamedDecl *OldD, bool IsKnownNewer) const { argument 1515 assert(getDeclName() == OldD->getDeclName() && "Declaration name mismatch"); 1519 if (OldD->isFromASTFile() && isFromASTFile()) 1523 if (OldD->getKind() != getKind()) 1539 OldD->getDeclContext()->getRedeclContext())) 1548 cast<UsingDecl>(OldD)->getQualifier()); 1554 cast<UnresolvedUsingValueDecl>(OldD)->getQualifier()); 1562 cast<UsingDirectiveDecl>(OldD)->getNominatedNamespace() 1566 if (getCanonicalDecl() != OldD->getCanonicalDecl()) 1572 // Check whether this is actually newer than OldD [all...] |
/external/clang/lib/Sema/ |
H A D | SemaOverload.cpp | 893 NamedDecl *OldD = *I; local 896 if (isa<UsingShadowDecl>(OldD)) { 903 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); 920 if (FunctionDecl *OldF = OldD->getAsFunction()) { 927 if (!isa<FunctionTemplateDecl>(OldD) && 934 } else if (isa<UsingDecl>(OldD)) { 938 } else if (isa<TagDecl>(OldD)) { 940 } else if (isa<UnresolvedUsingValueDecl>(OldD)) {
|
H A D | SemaDecl.cpp | 1935 NamedDecl *OldD = OldDecls.getRepresentativeDecl(); local 1936 if (OldD->getLocation().isValid()) 1937 Diag(OldD->getLocation(), diag::note_previous_definition); 2665 bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, argument 2668 FunctionDecl *Old = OldD->getAsFunction(); 2670 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(OldD)) { 2683 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl()); 2687 Diag(OldD->getLocation(), diag::note_previous_definition);
|
H A D | SemaDeclCXX.cpp | 8583 NamedDecl *OldD = Previous.getRepresentativeDecl(); local 8584 if (OldD->getLocation().isValid()) 8585 Diag(OldD->getLocation(), diag::note_previous_definition);
|
Completed in 355 milliseconds