Searched refs:OldD (Results 1 - 6 of 6) sorted by relevance

/external/clang/include/clang/AST/
H A DDeclContextInternals.h90 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 DDecl.h220 /// 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 DDecl.cpp1514 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 DSemaOverload.cpp893 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 DSemaDecl.cpp1935 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 DSemaDeclCXX.cpp8583 NamedDecl *OldD = Previous.getRepresentativeDecl(); local
8584 if (OldD->getLocation().isValid())
8585 Diag(OldD->getLocation(), diag::note_previous_definition);

Completed in 226 milliseconds