return ctx_iterator(IDI->decls_begin());
}
- /// isDeclInScope - If 'Ctx' is a function/method, isDeclInScope returns true\r
- /// if 'D' is in Scope 'S', otherwise 'S' is ignored and isDeclInScope returns\r
- /// true if 'D' belongs to the given declaration context.\r
+ /// 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())\r
- return S->isDeclScope(D);\r
-\r
+ if (Ctx->isFunctionOrMethod())
+ return S->isDeclScope(D);
+
return LookupContext(D) == LookupContext(Ctx);
}