aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-05-14 10:49:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-05-14 10:49:47 +0000
commite29f0a47ed56645d6a02d49e0fa9f4b9383611dd (patch)
tree145ff1015fe374aca4823aaeb24b9c3a3e41b6bb
parente5baccedc0d5f46f24248549b3359872facc9250 (diff)
Change CRLF line endings to LF.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51103 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/IdentifierResolver.h12
1 files changed, 6 insertions, 6 deletions
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);
}