Function sets switch hint state. @param switch_state_arg switch hint state @param type_arg hint type @param check_parent true if hint can be on parent level @return true if hint is already specified, false otherwise */
| 303 | false otherwise |
| 304 | */ |
| 305 | bool set_switch(bool switch_state_arg, |
| 306 | opt_hints_enum type_arg, |
| 307 | bool check_parent) |
| 308 | { |
| 309 | if (is_specified(type_arg) || |
| 310 | (check_parent && parent->is_specified(type_arg))) |
| 311 | return true; |
| 312 | |
| 313 | hints_map.set_switch(type_arg, switch_state_arg); |
| 314 | return false; |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | Function returns switch hint state. |
no test coverage detected