Home | History | Annotate | Download | only in Sema

Lines Matching defs:Stack

29     // We just use a sentinel to represent when the stack is set to mac68k
37 /// PragmaPackStack - Simple class to wrap the stack used by #pragma
45 /// Stack - Entries in the #pragma pack stack, consisting of saved
47 stack_ty Stack;
55 /// push - Push the current alignment onto the stack, optionally
59 Stack.push_back(PSE);
62 /// pop - Pop a record from the stack and restore the current
73 // An empty stack is a special case...
74 if (Stack.empty()) {
86 Alignment = Stack.back().Alignment;
87 Stack.pop_back();
94 for (unsigned i = Stack.size(); i != 0; ) {
96 if (Stack[i].Name == Name) {
98 Alignment = Stack[i].Alignment;
99 Stack.erase(Stack.begin() + i, Stack.end());
119 PragmaPackStack *Stack = static_cast<PragmaPackStack*>(PackContext);
122 if (unsigned Alignment = Stack->getAlignment()) {
174 // Reset just pops the top of the stack, or resets the current alignment to
178 << "stack empty";
247 // wasn't found. Otherwise failure indicates the stack was
250 << (Name ? "no record matching name" : "stack empty");
316 VisStack *Stack = static_cast<VisStack*>(VisContext);
317 unsigned rawType = Stack->back().first;
322 SourceLocation loc = Stack->back().second;
334 // Put visibility on stack.
338 VisStack *Stack = static_cast<VisStack*>(S.VisContext);
339 Stack->push_back(std::make_pair(type, loc));
395 // Pop visibility from stack
396 VisStack *Stack = static_cast<VisStack*>(VisContext);
398 const std::pair<unsigned, SourceLocation> *Back = &Stack->back();
406 Stack->pop_back();
407 Back = &Stack->back();
416 Stack->pop_back();
417 // To simplify the implementation, never keep around an empty stack.
418 if (Stack->empty())