Lines Matching full:flags

21 void Scope::Init(Scope *parent, unsigned flags) {  in Init()  argument
23 Flags = flags; in Init()
25 if (parent && !(flags & FnScope)) { in Init()
43 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in Init()
46 Flags |= parent->getFlags() & OpenMPSimdDirectiveScope; in Init()
58 if (flags & FnScope) FnParent = this; in Init()
61 if (Flags & (ClassScope | FnScope)) { in Init()
66 if (flags & BreakScope) BreakParent = this; in Init()
67 if (flags & ContinueScope) ContinueParent = this; in Init()
68 if (flags & BlockScope) BlockParent = this; in Init()
69 if (flags & TemplateParamScope) TemplateParamParent = this; in Init()
72 if (flags & FunctionPrototypeScope) PrototypeDepth++; in Init()
74 if (flags & DeclScope) { in Init()
75 if (flags & FunctionPrototypeScope) in Init()
77 else if ((flags & ClassScope) && getParent()->isClassScope()) in Init()
79 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in Init()
81 else if ((flags & EnumScope)) in Init()
106 "Unsupported scope flags"); in AddFlags()
108 assert((Flags & BreakScope) == 0 && "Already set"); in AddFlags()
112 assert((Flags & ContinueScope) == 0 && "Already set"); in AddFlags()
115 Flags |= FlagsToSet; in AddFlags()
136 unsigned Flags = getFlags(); in dumpImpl() local
137 bool HasFlags = Flags != 0; in dumpImpl()
140 OS << "Flags: "; in dumpImpl()
142 while (Flags) { in dumpImpl()
143 if (Flags & FnScope) { in dumpImpl()
145 Flags &= ~FnScope; in dumpImpl()
146 } else if (Flags & BreakScope) { in dumpImpl()
148 Flags &= ~BreakScope; in dumpImpl()
149 } else if (Flags & ContinueScope) { in dumpImpl()
151 Flags &= ~ContinueScope; in dumpImpl()
152 } else if (Flags & DeclScope) { in dumpImpl()
154 Flags &= ~DeclScope; in dumpImpl()
155 } else if (Flags & ControlScope) { in dumpImpl()
157 Flags &= ~ControlScope; in dumpImpl()
158 } else if (Flags & ClassScope) { in dumpImpl()
160 Flags &= ~ClassScope; in dumpImpl()
161 } else if (Flags & BlockScope) { in dumpImpl()
163 Flags &= ~BlockScope; in dumpImpl()
164 } else if (Flags & TemplateParamScope) { in dumpImpl()
166 Flags &= ~TemplateParamScope; in dumpImpl()
167 } else if (Flags & FunctionPrototypeScope) { in dumpImpl()
169 Flags &= ~FunctionPrototypeScope; in dumpImpl()
170 } else if (Flags & FunctionDeclarationScope) { in dumpImpl()
172 Flags &= ~FunctionDeclarationScope; in dumpImpl()
173 } else if (Flags & AtCatchScope) { in dumpImpl()
175 Flags &= ~AtCatchScope; in dumpImpl()
176 } else if (Flags & ObjCMethodScope) { in dumpImpl()
178 Flags &= ~ObjCMethodScope; in dumpImpl()
179 } else if (Flags & SwitchScope) { in dumpImpl()
181 Flags &= ~SwitchScope; in dumpImpl()
182 } else if (Flags & TryScope) { in dumpImpl()
184 Flags &= ~TryScope; in dumpImpl()
185 } else if (Flags & FnTryCatchScope) { in dumpImpl()
187 Flags &= ~FnTryCatchScope; in dumpImpl()
188 } else if (Flags & SEHTryScope) { in dumpImpl()
190 Flags &= ~SEHTryScope; in dumpImpl()
191 } else if (Flags & SEHExceptScope) { in dumpImpl()
193 Flags &= ~SEHExceptScope; in dumpImpl()
194 } else if (Flags & OpenMPDirectiveScope) { in dumpImpl()
196 Flags &= ~OpenMPDirectiveScope; in dumpImpl()
197 } else if (Flags & OpenMPLoopDirectiveScope) { in dumpImpl()
199 Flags &= ~OpenMPLoopDirectiveScope; in dumpImpl()
200 } else if (Flags & OpenMPSimdDirectiveScope) { in dumpImpl()
202 Flags &= ~OpenMPSimdDirectiveScope; in dumpImpl()
205 if (Flags) in dumpImpl()