parent
52a005ac13
commit
3722daf62d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue