Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
a1227700
Commit
a1227700
authored
Jun 05, 2019
by
Paul
Browse files
Fix cppcheck errors
parent
673e8ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/driver/main.cpp
src/driver/main.cpp
+4
-3
No files found.
src/driver/main.cpp
View file @
a1227700
...
...
@@ -146,6 +146,7 @@ struct run_cmd : command<run_cmd>
auto
p
=
c
.
compile
();
std
::
cout
<<
"Allocating params ... "
<<
std
::
endl
;
auto
m
=
c
.
params
(
p
);
p
.
eval
(
m
);
std
::
cout
<<
p
<<
std
::
endl
;
}
};
...
...
@@ -176,9 +177,9 @@ struct main_command
static
std
::
string
get_command_help
()
{
std
::
string
result
=
"Commands:
\n
"
;
for
(
const
auto
&
p
:
get_commands
())
re
sult
+
=
" "
+
p
.
first
+
"
\n
"
;
return
result
;
return
std
::
accumulate
(
get_commands
().
begin
(),
get_commands
().
end
(),
result
,
[](
auto
r
,
auto
&&
p
)
{
re
turn
r
+
" "
+
p
.
first
+
"
\n
"
;
})
;
}
void
parse
(
argument_parser
&
ap
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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