Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NPDet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
NPDet
Merge requests
!183
Removed debug printing of command line args
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Removed debug printing of command line args
update
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Whitney Armstrong
requested to merge
update
into
master
4 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bdbf7201
2 commits,
4 years ago
2 files
+
37
−
37
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/tools/src/npdet_info.cxx
+
36
−
36
Options
@@ -116,42 +116,42 @@ settings cmdline_settings(int argc, char* argv[]) {
@@ -116,42 +116,42 @@ settings cmdline_settings(int argc, char* argv[]) {
std
::
exit
(
0
);
std
::
exit
(
0
);
}
}
// parse debugging:
//
//
parse debugging:
auto
doc_label
=
[](
const
parameter
&
p
)
{
//
auto doc_label = [](const parameter& p) {
if
(
!
p
.
flags
().
empty
())
//
if (!p.flags().empty())
return
p
.
flags
().
front
();
//
return p.flags().front();
if
(
!
p
.
label
().
empty
())
//
if (!p.label().empty())
return
p
.
label
();
//
return p.label();
return
doc_string
{
"<?>"
};
//
return doc_string{"<?>"};
};
//
};
std
::
cout
<<
"args -> parameter mapping:
\n
"
;
//
std::cout << "args -> parameter mapping:\n";
for
(
const
auto
&
m
:
result
)
{
//
for (const auto& m : result) {
std
::
cout
<<
"#"
<<
m
.
index
()
<<
" "
<<
m
.
arg
()
<<
" -> "
;
//
std::cout << "#" << m.index() << " " << m.arg() << " -> ";
auto
p
=
m
.
param
();
//
auto p = m.param();
if
(
p
)
{
//
if (p) {
std
::
cout
<<
doc_label
(
*
p
)
<<
"
\t
"
;
//
std::cout << doc_label(*p) << " \t";
if
(
m
.
repeat
()
>
0
)
{
//
if (m.repeat() > 0) {
std
::
cout
<<
(
m
.
bad_repeat
()
?
"[bad repeat "
:
"[repeat "
)
<<
m
.
repeat
()
<<
"]"
;
//
std::cout << (m.bad_repeat() ? "[bad repeat " : "[repeat ") << m.repeat() << "]";
}
//
}
if
(
m
.
blocked
())
//
if (m.blocked())
std
::
cout
<<
" [blocked]"
;
//
std::cout << " [blocked]";
if
(
m
.
conflict
())
//
if (m.conflict())
std
::
cout
<<
" [conflict]"
;
//
std::cout << " [conflict]";
std
::
cout
<<
'\n'
;
//
std::cout << '\n';
}
else
{
//
} else {
std
::
cout
<<
" [unmapped]
\n
"
;
//
std::cout << " [unmapped]\n";
}
//
}
}
//
}
std
::
cout
<<
"missing parameters:
\n
"
;
//
std::cout << "missing parameters:\n";
for
(
const
auto
&
m
:
result
.
missing
())
{
//
for (const auto& m : result.missing()) {
auto
p
=
m
.
param
();
//
auto p = m.param();
if
(
p
)
{
//
if (p) {
std
::
cout
<<
doc_label
(
*
p
)
<<
"
\t
"
;
//
std::cout << doc_label(*p) << " \t";
std
::
cout
<<
" [missing after "
<<
m
.
after_index
()
<<
"]
\n
"
;
//
std::cout << " [missing after " << m.after_index() << "]\n";
}
//
}
}
//
}
std
::
cout
<<
bool
(
result
)
<<
"
\n
"
;
//
std::cout << bool(result) << "\n";
if
(
!
result
)
{
if
(
!
result
)
{
s
.
success
=
false
;
s
.
success
=
false
;
Loading