Lines Matching refs:flags
20 void Scope::setFlags(Scope *parent, unsigned flags) {
22 Flags = flags;
24 if (parent && !(flags & FnScope)) {
57 if (flags & FnScope) FnParent = this;
65 if (flags & BreakScope) BreakParent = this;
66 if (flags & ContinueScope) ContinueParent = this;
67 if (flags & BlockScope) BlockParent = this;
68 if (flags & TemplateParamScope) TemplateParamParent = this;
71 if (flags & FunctionPrototypeScope) PrototypeDepth++;
73 if (flags & DeclScope) {
74 if (flags & FunctionPrototypeScope)
76 else if ((flags & ClassScope) && getParent()->isClassScope())
78 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope)
80 else if ((flags & EnumScope))
87 void Scope::Init(Scope *parent, unsigned flags) {
88 setFlags(parent, flags);
109 "Unsupported scope flags");
182 assert(Flags == 0 && "Unknown scope flags");