Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Schöps
kdevelop
Commits
a4e6c0aa
Commit
a4e6c0aa
authored
Jun 26, 2019
by
Friedrich W. H. Kossebau
Browse files
lldb: port foreach -> range-based for
parent
198a279f
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/lldb/controllers/variable.cpp
View file @
a4e6c0aa
...
...
@@ -80,7 +80,7 @@ void LldbVariable::formatChanged()
{
if
(
childCount
())
{
for
each
(
TreeItem
*
item
,
childItems
)
{
for
(
TreeItem
*
item
:
qAsConst
(
childItems
)
)
{
Q_ASSERT
(
qobject_cast
<
MIVariable
*>
(
item
));
if
(
auto
*
var
=
qobject_cast
<
MIVariable
*>
(
item
))
{
var
->
setFormat
(
format
());
...
...
plugins/lldb/debugsession.cpp
View file @
a4e6c0aa
...
...
@@ -242,7 +242,8 @@ void DebugSession::configInferior(ILaunchConfiguration *cfg, IExecutePlugin *iex
if
(
breakOnStart
)
{
BreakpointModel
*
m
=
ICore
::
self
()
->
debugController
()
->
breakpointModel
();
bool
found
=
false
;
foreach
(
Breakpoint
*
b
,
m
->
breakpoints
())
{
const
auto
breakpoints
=
m
->
breakpoints
();
for
(
Breakpoint
*
b
:
breakpoints
)
{
if
(
b
->
location
()
==
QLatin1String
(
"main"
))
{
found
=
true
;
break
;
...
...
plugins/lldb/unittests/test_lldb.cpp
View file @
a4e6c0aa
...
...
@@ -1828,7 +1828,8 @@ void LldbTest::testDebugInExternalTerminal()
{
TestLaunchConfiguration
cfg
;
foreach
(
const
QString
&
console
,
QStringList
()
<<
"konsole"
<<
"xterm"
<<
"xfce4-terminal"
<<
"gnome-terminal"
)
{
const
QStringList
consoles
{
"konsole"
,
"xterm"
,
"xfce4-terminal"
,
"gnome-terminal"
};
for
(
const
QString
&
console
:
consoles
)
{
if
(
QStandardPaths
::
findExecutable
(
console
).
isEmpty
())
{
continue
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment