File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ namespace odb {
3333
3434 bool _{{klass.name}}::operator<(const _{{klass.name}}& rhs) const
3535 {
36+ {% if klass .less_fields | length == 1 %}
37+ // NOLINTBEGIN(readability-simplify-boolean-expr)
38+ {% endif %}
3639 {% for less in klass .less_fields %}
3740 if ({{less.left}} >= {{less.right}}) {
3841 return false;
@@ -42,6 +45,9 @@ namespace odb {
4245 //User Code Begin <
4346 //User Code End <
4447 return true;
48+ {% if klass .less_fields | length == 1 %}
49+ // NOLINTEND(readability-simplify-boolean-expr)
50+ {% endif %}
4551 }
4652
4753 _{{klass.name}}::_{{klass.name}}(_dbDatabase* db)
Original file line number Diff line number Diff line change @@ -144,11 +144,13 @@ bool _dbChip::operator==(const _dbChip& rhs) const
144144
145145bool _dbChip::operator <(const _dbChip& rhs) const
146146{
147+ // NOLINTBEGIN(readability-simplify-boolean-expr)
147148 if (top_ >= rhs.top_ ) {
148149 return false ;
149150 }
150151
151152 return true ;
153+ // NOLINTEND(readability-simplify-boolean-expr)
152154}
153155
154156_dbChip::_dbChip (_dbDatabase* db)
You can’t perform that action at this time.
0 commit comments