Lines Matching refs:Stack
257 if (AlignPackStack.Stack.empty()) { in ActOnPragmaOptionsAlign()
378 if (AlignPackStack.Stack.empty()) { in ActOnPragmaPack()
478 if (AlignPackStack.Stack.empty()) in DiagnoseUnterminatedPragmaAlignPack()
485 for (const auto &StackSlot : llvm::reverse(AlignPackStack.Stack)) { in DiagnoseUnterminatedPragmaAlignPack()
593 if (FpPragmaStack.Stack.empty()) { in ActOnPragmaFloatControl()
615 if (Action & PSK_Pop && VtorDispStack.Stack.empty()) in ActOnPragmaMSVtorDisp()
632 Stack.emplace_back(Slot(StackSlotLabel, CurrentValue, CurrentPragmaLocation, in Act()
637 auto I = llvm::find_if(llvm::reverse(Stack), [&](const Slot &x) { in Act()
641 if (I != Stack.rend()) { in Act()
644 Stack.erase(std::prev(I.base()), Stack.end()); in Act()
650 auto I = llvm::find_if(llvm::reverse(Stack), [&](const Slot &x) { in Act()
654 if (I != Stack.rend()) { in Act()
655 Stack.erase(std::prev(I.base()), Stack.end()); in Act()
656 if (Stack.empty()) { in Act()
660 CurrentValue = Stack.back().Value; in Act()
661 CurrentPragmaLocation = Stack.back().PragmaLocation; in Act()
662 Stack.pop_back(); in Act()
665 } else if (!Stack.empty()) { in Act()
672 CurrentValue = Stack.back().Value; in Act()
673 CurrentPragmaLocation = Stack.back().PragmaLocation; in Act()
674 Stack.pop_back(); in Act()
742 PragmaStack<StringLiteral *> *Stack = in ActOnPragmaMSSeg() local
748 if (Action & PSK_Pop && Stack->Stack.empty()) in ActOnPragmaMSSeg()
760 Stack->Act(PragmaLocation, Action, StackSlotLabel, SegmentName); in ActOnPragmaMSSeg()
767 if (Action & PSK_Pop && StrictGuardStackCheckStack.Stack.empty()) in ActOnPragmaMSStrictGuardStackCheck()
1230 VisStack *Stack = static_cast<VisStack*>(VisContext); in AddPushedVisibilityAttribute() local
1231 unsigned rawType = Stack->back().first; in AddPushedVisibilityAttribute()
1236 SourceLocation loc = Stack->back().second; in AddPushedVisibilityAttribute()
1252 VisStack *Stack = static_cast<VisStack*>(S.VisContext); in PushPragmaVisibility() local
1253 Stack->push_back(std::make_pair(type, loc)); in PushPragmaVisibility()
1366 VisStack *Stack = static_cast<VisStack*>(VisContext); in PopPragmaVisibility() local
1368 const std::pair<unsigned, SourceLocation> *Back = &Stack->back(); in PopPragmaVisibility()
1376 Stack->pop_back(); in PopPragmaVisibility()
1377 Back = &Stack->back(); in PopPragmaVisibility()
1386 Stack->pop_back(); in PopPragmaVisibility()
1388 if (Stack->empty()) in PopPragmaVisibility()