Home | History | Annotate | Download | only in Sema

Lines Matching full:prev

5832   NamedDecl *Prev = S.findLocallyScopedExternCDecl(ND->getDeclName());
5834 if (!Prev && IsGlobal && !isIncompleteDeclExternC(S, ND)) {
5840 if (Prev) {
5845 Previous.addDecl(Prev);
5863 Prev = *I;
5873 Prev = *I;
5884 if (!Prev)
5890 assert(Prev && "should have found a previous declaration to diagnose");
5891 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Prev))
5892 Prev
5894 Prev = cast<VarDecl>(Prev)->getFirstDecl();
5898 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
5919 if (NamedDecl *Prev = S.findLocallyScopedExternCDecl(ND->getDeclName())) {
5921 Previous.addDecl(Prev);
6293 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
6300 SemaRef.LookupName(Prev, S);
6302 SemaRef.LookupQualifiedName(Prev, NewDC);
6303 assert(!Prev.isAmbiguous() &&
6308 if (!Prev.empty()) {
6309 for (LookupResult::iterator Func = Prev.begin(), FuncEnd = Prev.end();
6323 Prev.getLookupNameInfo(), Prev.getLookupKind(), S,
9075 VarDecl *prev = var->getPreviousDecl();
9076 while (prev && prev->isThisDeclarationADefinition())
9077 prev = prev->getPreviousDecl();
9079 if (!prev)
9765 for (const FunctionDecl *Prev = FD->getPreviousDecl();
9766 Prev; Prev = Prev->getPreviousDecl()) {
9769 if (Prev->getLexicalDeclContext()->isFunctionOrMethod())
9772 MissingPrototype = !Prev->getType()->isFunctionProtoType();
9774 PossibleZeroParamPrototype = Prev;
10572 const EnumDecl *Prev) {
10575 if (IsScoped != Prev->isScoped()) {
10577 << Prev->isScoped();
10578 Diag(Prev->getLocation(), diag::note_previous_declaration);
10582 if (IsFixed && Prev->isFixed()) {
10584 !Prev->getIntegerType()->isDependentType() &&
10586 Prev->getIntegerType())) {
10589 << EnumUnderlyingTy << Prev->getIntegerType();
10590 Diag(Prev->getLocation(), diag::note_previous_declaration)
10591 << Prev->getIntegerTypeRange();
10594 } else if (IsFixed != Prev->isFixed()) {
10596 << Prev->isFixed();
10597 Diag(Prev->getLocation(), diag::note_previous_declaration);