• Home
  • Raw
  • Download

Lines Matching full:flags

21 void Scope::setFlags(Scope *parent, unsigned flags) {  in setFlags()  argument
23 Flags = flags; in setFlags()
25 if (parent && !(flags & FnScope)) { in setFlags()
43 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags()
46 Flags |= parent->getFlags() & OpenMPSimdDirectiveScope; in setFlags()
58 if (flags & FnScope) FnParent = this; in setFlags()
61 if (Flags & (ClassScope | FnScope)) { in setFlags()
66 if (flags & BreakScope) BreakParent = this; in setFlags()
67 if (flags & ContinueScope) ContinueParent = this; in setFlags()
68 if (flags & BlockScope) BlockParent = this; in setFlags()
69 if (flags & TemplateParamScope) TemplateParamParent = this; in setFlags()
72 if (flags & FunctionPrototypeScope) PrototypeDepth++; in setFlags()
74 if (flags & DeclScope) { in setFlags()
75 if (flags & FunctionPrototypeScope) in setFlags()
77 else if ((flags & ClassScope) && getParent()->isClassScope()) in setFlags()
79 else if ((flags & ClassScope) && getParent()->getFlags() == DeclScope) in setFlags()
81 else if ((flags & EnumScope)) in setFlags()
88 void Scope::Init(Scope *parent, unsigned flags) { in Init() argument
89 setFlags(parent, flags); in Init()
110 "Unsupported scope flags"); in AddFlags()
112 assert((Flags & BreakScope) == 0 && "Already set"); in AddFlags()
116 assert((Flags & ContinueScope) == 0 && "Already set"); in AddFlags()
119 Flags |= FlagsToSet; in AddFlags()
140 unsigned Flags = getFlags(); in dumpImpl() local
141 bool HasFlags = Flags != 0; in dumpImpl()
144 OS << "Flags: "; in dumpImpl()
146 while (Flags) { in dumpImpl()
147 if (Flags & FnScope) { in dumpImpl()
149 Flags &= ~FnScope; in dumpImpl()
150 } else if (Flags & BreakScope) { in dumpImpl()
152 Flags &= ~BreakScope; in dumpImpl()
153 } else if (Flags & ContinueScope) { in dumpImpl()
155 Flags &= ~ContinueScope; in dumpImpl()
156 } else if (Flags & DeclScope) { in dumpImpl()
158 Flags &= ~DeclScope; in dumpImpl()
159 } else if (Flags & ControlScope) { in dumpImpl()
161 Flags &= ~ControlScope; in dumpImpl()
162 } else if (Flags & ClassScope) { in dumpImpl()
164 Flags &= ~ClassScope; in dumpImpl()
165 } else if (Flags & BlockScope) { in dumpImpl()
167 Flags &= ~BlockScope; in dumpImpl()
168 } else if (Flags & TemplateParamScope) { in dumpImpl()
170 Flags &= ~TemplateParamScope; in dumpImpl()
171 } else if (Flags & FunctionPrototypeScope) { in dumpImpl()
173 Flags &= ~FunctionPrototypeScope; in dumpImpl()
174 } else if (Flags & FunctionDeclarationScope) { in dumpImpl()
176 Flags &= ~FunctionDeclarationScope; in dumpImpl()
177 } else if (Flags & AtCatchScope) { in dumpImpl()
179 Flags &= ~AtCatchScope; in dumpImpl()
180 } else if (Flags & ObjCMethodScope) { in dumpImpl()
182 Flags &= ~ObjCMethodScope; in dumpImpl()
183 } else if (Flags & SwitchScope) { in dumpImpl()
185 Flags &= ~SwitchScope; in dumpImpl()
186 } else if (Flags & TryScope) { in dumpImpl()
188 Flags &= ~TryScope; in dumpImpl()
189 } else if (Flags & FnTryCatchScope) { in dumpImpl()
191 Flags &= ~FnTryCatchScope; in dumpImpl()
192 } else if (Flags & SEHTryScope) { in dumpImpl()
194 Flags &= ~SEHTryScope; in dumpImpl()
195 } else if (Flags & SEHExceptScope) { in dumpImpl()
197 Flags &= ~SEHExceptScope; in dumpImpl()
198 } else if (Flags & OpenMPDirectiveScope) { in dumpImpl()
200 Flags &= ~OpenMPDirectiveScope; in dumpImpl()
201 } else if (Flags & OpenMPLoopDirectiveScope) { in dumpImpl()
203 Flags &= ~OpenMPLoopDirectiveScope; in dumpImpl()
204 } else if (Flags & OpenMPSimdDirectiveScope) { in dumpImpl()
206 Flags &= ~OpenMPSimdDirectiveScope; in dumpImpl()
209 if (Flags) in dumpImpl()