]> granicus.if.org Git - clang/commitdiff
IdentifierResolver: Remove an unnecessary include and an unused parameter.
authorNico Weber <nicolasweber@gmx.de>
Mon, 17 Dec 2012 03:51:09 +0000 (03:51 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 17 Dec 2012 03:51:09 +0000 (03:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170297 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/IdentifierResolver.h
lib/Sema/IdentifierResolver.cpp
lib/Sema/SemaDecl.cpp

index dff013423aa93b57d89aafbb14be7eb34689241c..0b1b74a0d8cc1db46d59fde9bbd09c6c78af0029 100644 (file)
@@ -158,8 +158,7 @@ public:
   /// \param ExplicitInstantiationOrSpecialization When true, we are checking
   /// whether the declaration is in scope for the purposes of explicit template
   /// instantiation or specialization. The default is false.
-  bool isDeclInScope(Decl *D, DeclContext *Ctx, ASTContext &Context,
-                     Scope *S = 0,
+  bool isDeclInScope(Decl *D, DeclContext *Ctx, Scope *S = 0,
                      bool ExplicitInstantiationOrSpecialization = false) const;
 
   /// AddDecl - Link the decl to its shadowed decl chain.
index 5100fcb5e3631659be454f4efcce78fb3790ab75..6f5ddca20b12409a1eb3b8dcdb65050db073fff3 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "clang/Sema/IdentifierResolver.h"
 #include "clang/AST/Decl.h"
-#include "clang/AST/DeclObjC.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/Lex/ExternalPreprocessorSource.h"
 #include "clang/Lex/Preprocessor.h"
@@ -108,8 +107,7 @@ IdentifierResolver::~IdentifierResolver() {
 /// isDeclInScope - If 'Ctx' is a function/method, isDeclInScope returns true
 /// if 'D' is in Scope 'S', otherwise 'S' is ignored and isDeclInScope returns
 /// true if 'D' belongs to the given declaration context.
-bool IdentifierResolver::isDeclInScope(Decl *D, DeclContext *Ctx,
-                                       ASTContext &Context, Scope *S,
+bool IdentifierResolver::isDeclInScope(Decl *D, DeclContext *Ctx, Scope *S,
                              bool ExplicitInstantiationOrSpecialization) const {
   Ctx = Ctx->getRedeclContext();
 
index cae0cfaf4c99bac106828d2eab5ba6fc5aec3aef..1f80390b402210448c3b5c179d8705e92779f04b 100644 (file)
@@ -1096,7 +1096,7 @@ void Sema::pushExternalDeclIntoScope(NamedDecl *D, DeclarationName Name) {
 
 bool Sema::isDeclInScope(NamedDecl *&D, DeclContext *Ctx, Scope *S,
                          bool ExplicitInstantiationOrSpecialization) {
-  return IdResolver.isDeclInScope(D, Ctx, Context, S,
+  return IdResolver.isDeclInScope(D, Ctx, S,
                                   ExplicitInstantiationOrSpecialization);
 }