diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 18 | 
1 files changed, 7 insertions, 11 deletions
| diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 2385cd07bd8..62e7c8af1e9 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -79,7 +79,7 @@ Sema::DeclTy *Sema::ActOnStartClassInterface(    assert(ClassName && "Missing class identifier");    // Check for another declaration kind with the same name. -  Decl *PrevDecl = LookupDecl(ClassName, Decl::IDNS_Ordinary, ClassLoc,TUScope); +  Decl *PrevDecl = LookupDecl(ClassName, Decl::IDNS_Ordinary, TUScope);    if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {      Diag(ClassLoc, diag::err_redefinition_different_kind,           ClassName->getName()); @@ -112,7 +112,7 @@ Sema::DeclTy *Sema::ActOnStartClassInterface(    if (SuperName) {      ObjCInterfaceDecl* SuperClassEntry = 0;      // Check if a different kind of symbol declared in this scope. -    PrevDecl = LookupDecl(SuperName, Decl::IDNS_Ordinary, SuperLoc, TUScope); +    PrevDecl = LookupDecl(SuperName, Decl::IDNS_Ordinary, TUScope);      if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {        Diag(SuperLoc, diag::err_redefinition_different_kind,             SuperName->getName()); @@ -158,8 +158,7 @@ Sema::DeclTy *Sema::ActOnCompatiblityAlias(SourceLocation AtLoc,                                             IdentifierInfo *ClassName,                                             SourceLocation ClassLocation) {    // Look for previous declaration of alias name -  Decl *ADecl = LookupDecl(AliasName, Decl::IDNS_Ordinary, -                           AliasLocation, TUScope); +  Decl *ADecl = LookupDecl(AliasName, Decl::IDNS_Ordinary, TUScope);    if (ADecl) {      if (isa<ObjCCompatibleAliasDecl>(ADecl)) {        Diag(AliasLocation, diag::warn_previous_alias_decl); @@ -173,8 +172,7 @@ Sema::DeclTy *Sema::ActOnCompatiblityAlias(SourceLocation AtLoc,      return 0;    }    // Check for class declaration -  Decl *CDeclU = LookupDecl(ClassName, Decl::IDNS_Ordinary, -                            ClassLocation, TUScope); +  Decl *CDeclU = LookupDecl(ClassName, Decl::IDNS_Ordinary, TUScope);    ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU);    if (CDecl == 0) {      Diag(ClassLocation, diag::warn_undef_interface, ClassName->getName()); @@ -347,7 +345,7 @@ Sema::DeclTy *Sema::ActOnStartClassImplementation(                        SourceLocation SuperClassLoc) {    ObjCInterfaceDecl* IDecl = 0;    // Check for another declaration kind with the same name. -  Decl *PrevDecl = LookupDecl(ClassName, Decl::IDNS_Ordinary, ClassLoc,TUScope); +  Decl *PrevDecl = LookupDecl(ClassName, Decl::IDNS_Ordinary, TUScope);    if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {      Diag(ClassLoc, diag::err_redefinition_different_kind,           ClassName->getName()); @@ -364,8 +362,7 @@ Sema::DeclTy *Sema::ActOnStartClassImplementation(    ObjCInterfaceDecl* SDecl = 0;    if (SuperClassname) {      // Check if a different kind of symbol declared in this scope. -    PrevDecl = LookupDecl(SuperClassname, Decl::IDNS_Ordinary, -                          SuperClassLoc, TUScope); +    PrevDecl = LookupDecl(SuperClassname, Decl::IDNS_Ordinary, TUScope);      if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {        Diag(SuperClassLoc, diag::err_redefinition_different_kind,             SuperClassname->getName()); @@ -590,8 +587,7 @@ Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,    for (unsigned i = 0; i != NumElts; ++i) {      // Check for another declaration kind with the same name. -    Decl *PrevDecl = LookupDecl(IdentList[i], Decl::IDNS_Ordinary, -                                AtClassLoc, TUScope); +    Decl *PrevDecl = LookupDecl(IdentList[i], Decl::IDNS_Ordinary, TUScope);      if (PrevDecl && !isa<ObjCInterfaceDecl>(PrevDecl)) {        Diag(AtClassLoc, diag::err_redefinition_different_kind,             IdentList[i]->getName()); | 

