summaryrefslogtreecommitdiffstats
path: root/src/lib/netlist/plib/poptions.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@users.noreply.github.com>2022-05-29 18:30:25 +0200
committer GitHub <noreply@github.com>2022-05-30 02:30:25 +1000
commit5155e51bbe24d0cc45a84ddb66138f83ff1810cf (patch)
tree80e3f8bcf6b39c8a06e3a6d6ba59c9f45de1449d /src/lib/netlist/plib/poptions.cpp
parentbfc1c9cd01aeb286357a88259f9bd360ef792348 (diff)
netlist: static solver work and improve code readability (#9841)
- nltool: Added support for building individual static solver files. - Added pre-built documentation files for nltool and nlwav. - plib: Extended typed_version to have patchlevel as well. - plib: Compile more of ppmf.h with nvcc. - create_devinc.py: Add include guards to the generated files. - makefile: Recreate generated files when python code has changed. - Reduced nld_base.h usage in the core. - <oved extern template class declarations to where they belong. - Generally improved code readability and fixed a lot of issues cspell reported.
Diffstat (limited to 'src/lib/netlist/plib/poptions.cpp')
-rw-r--r--src/lib/netlist/plib/poptions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp
index b7e0b595114..1ddda613e85 100644
--- a/src/lib/netlist/plib/poptions.cpp
+++ b/src/lib/netlist/plib/poptions.cpp
@@ -57,12 +57,12 @@ namespace plib {
void options::register_option(option_base *opt)
{
- m_opts.push_back(opt);
+ m_options.push_back(opt);
}
void options::check_consistency()
{
- for (auto &opt : m_opts)
+ for (auto &opt : m_options)
{
auto *o = dynamic_cast<option *>(opt);
if (o != nullptr)
@@ -200,7 +200,7 @@ namespace plib {
ret = split_paragraphs(description, width, 0, 0) + "\n\n";
ret += "Usage:\t" + usage + "\n\nOptions:\n\n";
- for (const auto & optbase : m_opts )
+ for (const auto & optbase : m_options )
{
// Skip anonymous inputs which are collected in option_args
if (dynamic_cast<option_args *>(optbase) != nullptr)
@@ -253,7 +253,7 @@ namespace plib {
}
// FIXME: other help ...
pstring ex("");
- for (const auto & optbase : m_opts )
+ for (const auto & optbase : m_options )
{
if (auto *example = dynamic_cast<option_example *>(optbase))
{
@@ -271,7 +271,7 @@ namespace plib {
option *options::getopt_short(const pstring &arg) const
{
- for (const auto & optbase : m_opts)
+ for (const auto & optbase : m_options)
{
auto *opt = dynamic_cast<option *>(optbase);
if (opt != nullptr && !arg.empty() && opt->short_opt() == arg)
@@ -281,7 +281,7 @@ namespace plib {
}
option *options::getopt_long(const pstring &arg) const
{
- for (const auto & optbase : m_opts)
+ for (const auto & optbase : m_options)
{
auto *opt = dynamic_cast<option *>(optbase);
if (opt != nullptr && !arg.empty() && opt->long_opt() == arg)