MCPcopy Create free account
hub / github.com/KDE/kdevelop / nextCommand

Method nextCommand

plugins/debuggercommon/mi/micommandqueue.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::unique_ptr<MICommand> CommandQueue::nextCommand()
91{
92 if (m_commandList.empty())
93 return {};
94
95 auto command = std::exchange(m_commandList.front(), {});
96 m_commandList.pop_front();
97
98 if (command->flags() & (CmdImmediately | CmdInterrupt))
99 --m_immediatelyCounter;
100
101 return command;
102}
103

Callers 2

executeCmdMethod · 0.80
addAndTakeMethod · 0.80

Calls 2

emptyMethod · 0.80
flagsMethod · 0.45

Tested by 1

addAndTakeMethod · 0.64