From 3722daf62dbe90653a5a94bf8021d6c0922f10e1 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 14 May 2008 10:49:47 +0000 Subject: [PATCH] Change CRLF line endings to LF. llvm-svn: 51103 --- clang/lib/Sema/IdentifierResolver.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/lib/Sema/IdentifierResolver.h b/clang/lib/Sema/IdentifierResolver.h index da1327be485a..7ba252b5bc16 100644 --- a/clang/lib/Sema/IdentifierResolver.h +++ b/clang/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); }