| Verdict | Location | Message |
| - | include/cxxopts.hpp:589:7 | variable 'value_match' of type 'value_type' (aka 'sub_match<__gnu_cxx::__normal_iterator<const char *, std::basic_string<char>>>') can be declared 'const' |
| - | include/cxxopts.hpp:1185:7 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1191:7 | variable 'riter' of type 'const_iterator' (aka '__detail::_Node_const_iterator<std::pair<const std::shared_ptr<cxxopts::OptionDetails>, cxxopts::OptionValue>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1199:7 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1206:7 | variable 'riter' of type 'const_iterator' (aka '__detail::_Node_const_iterator<std::pair<const std::shared_ptr<cxxopts::OptionDetails>, cxxopts::OptionValue>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1483:7 | variable 'arg' of type 'std::basic_string<char>' can be declared 'const' |
| - | include/cxxopts.hpp:1734:3 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1750:5 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1753:7 | variable 'result' of type 'mapped_type &' (aka 'cxxopts::OptionValue &') can be declared 'const' |
| - | include/cxxopts.hpp:1860:11 | variable 'name' of type 'std::string' (aka 'basic_string<char>') can be declared 'const' |
| - | include/cxxopts.hpp:1861:11 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1873:11 | variable 'value' of type 'std::shared_ptr<cxxopts::OptionDetails>' can be declared 'const' |
| - | include/cxxopts.hpp:1895:9 | variable 'iter' of type 'iterator' (aka '__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>') can be declared 'const' |
| - | include/cxxopts.hpp:1911:9 | variable 'opt' of type 'std::shared_ptr<cxxopts::OptionDetails>' can be declared 'const' |
| - | include/cxxopts.hpp:1932:8 | variable 'opt' of type 'value_type &' (aka 'std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>> &') can be declared 'const' |
| - | include/cxxopts.hpp:1934:5 | variable 'detail' of type 'std::shared_ptr<cxxopts::OptionDetails> &' can be declared 'const' |
| - | include/cxxopts.hpp:1937:5 | variable 'store' of type 'mapped_type &' (aka 'cxxopts::OptionValue &') can be declared 'const' |
| - | include/cxxopts.hpp:1989:3 | variable 'stringDesc' of type 'std::basic_string<char>' can be declared 'const' |
| - | include/cxxopts.hpp:1990:3 | variable 'option' of type 'shared_ptr<_NonArray<cxxopts::OptionDetails>>' (aka 'shared_ptr<cxxopts::OptionDetails>') can be declared 'const' |
| - | include/cxxopts.hpp:2021:3 | variable 'in' of type 'std::pair<iterator, bool>' (aka 'std::pair<__detail::_Node_iterator<std::pair<const std::basic_string<char>, std::shared_ptr<cxxopts::OptionDetails>>, __constant_iterators::value, __hash_cached::value>, bool>') can be declared 'const' |
| - | include/cxxopts.hpp:2035:3 | variable 'group' of type 'const_iterator' (aka '_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, cxxopts::HelpGroupDetails>>') can be declared 'const' |
| - | include/cxxopts.hpp:2060:5 | variable 's' of type 'String' (aka 'basic_string<char>') can be declared 'const' |
| - | include/cxxopts.hpp:2068:3 | variable 'allowed' of type 'size_t' (aka 'unsigned long') can be declared 'const' |
| - | include/cxxopts.hpp:2079:5 | variable 'd' of type 'String' (aka 'basic_string<char>') can be declared 'const' |
| - | src/example.cpp:74:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | src/example.cpp:152:5 | variable 'arguments' of type 'std::vector<KeyValue>' can be declared 'const' |
| - | test/options.cpp:17:7 | variable 'len' of type 'size_t' (aka 'unsigned long') can be declared 'const' |
| - | test/options.cpp:59:3 | variable 'argv' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:75:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:107:3 | variable 'argv' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:112:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:126:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:130:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:146:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:155:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:178:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:183:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:204:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:210:3 | variable 'old_argc' of type 'int' can be declared 'const' |
| - | test/options.cpp:227:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:242:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:247:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:261:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:270:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:275:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:281:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:286:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:292:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:297:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:303:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:308:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:324:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:329:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:340:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:345:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:359:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:364:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:375:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:381:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:402:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:408:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:426:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:443:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:449:5 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:485:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:505:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:511:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:530:5 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:555:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:560:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:589:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:629:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:659:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:682:3 | variable 'av' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:702:3 | variable 'argv_' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:721:3 | variable 'help' of type 'cxxopts::Option' can be declared 'const' |
| - | test/options.cpp:728:3 | variable 'argv' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:738:3 | variable 'result' of type 'ParseResult' can be declared 'const' |
| - | test/options.cpp:753:3 | variable 'option_1' of type 'cxxopts::Option' can be declared 'const' |
| - | test/options.cpp:758:3 | variable 'argv_' of type 'Argv' can be declared 'const' |
| - | test/options.cpp:767:3 | variable 'result' of type 'ParseResult' can be declared 'const' |