From: Argyrios Kyrtzidis Date: Wed, 14 May 2008 10:49:47 +0000 (+0000) Subject: Change CRLF line endings to LF. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e29f0a47ed56645d6a02d49e0fa9f4b9383611dd;p=clang Change CRLF line endings to LF. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51103 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/IdentifierResolver.h b/lib/Sema/IdentifierResolver.h index da1327be48..7ba252b5bc 100644 --- a/lib/Sema/IdentifierResolver.h +++ b/lib/Sema/IdentifierResolver.h @@ -321,13 +321,13 @@ public: return ctx_iterator(IDI->decls_begin()); } - /// 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. + /// 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. static bool isDeclInScope(Decl *D, DeclContext *Ctx, Scope *S = 0) { - if (Ctx->isFunctionOrMethod()) - return S->isDeclScope(D); - + if (Ctx->isFunctionOrMethod()) + return S->isDeclScope(D); + return LookupContext(D) == LookupContext(Ctx); }