summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-09-28 21:45:59 +0200
committer couriersud <couriersud@gmx.org>2019-09-28 21:45:59 +0200
commit545ebe832d1f78ad9379922711e383fcb2fdeea4 (patch)
treed33abcf0c7afac1f18d81d3443c54833ef8572e0 /src/lib/netlist/nl_parser.cpp
parent8e31f22bcd1e69b1b50bfdc3d615a98e61ac1c4b (diff)
netlist: more lint corrections. (nw)
- fixed lint corrections - added NOLINT where needed
Diffstat (limited to 'src/lib/netlist/nl_parser.cpp')
-rw-r--r--src/lib/netlist/nl_parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp
index dfae907fe96..a2cc7b31b93 100644
--- a/src/lib/netlist/nl_parser.cpp
+++ b/src/lib/netlist/nl_parser.cpp
@@ -144,6 +144,8 @@ void parser_t::parse_netlist(const pstring &nlname)
void parser_t::net_truthtable_start(const pstring &nlname)
{
pstring name = get_identifier();
+ bool head_found(false);
+
require_token(m_tok_comma);
long ni = get_number_long();
require_token(m_tok_comma);
@@ -169,9 +171,12 @@ void parser_t::net_truthtable_start(const pstring &nlname)
require_token(m_tok_param_left);
desc.desc.push_back(get_string());
require_token(m_tok_param_right);
+ head_found = true;
}
else if (token.is(m_tok_TT_LINE))
{
+ if (!head_found)
+ m_setup.log().error("TT_LINE found without TT_HEAD");
require_token(m_tok_param_left);
desc.desc.push_back(get_string());
require_token(m_tok_param_right);