cxxopts:

Run:44316113512
Check:main: misc-const-correctness
Status:ok
Time:6s
Warnings:81 (TP 0, FP 0, unclassified 81)
Source:jarro2783/cxxopts/blob/794c975287355de48158d9a80ed502d26b20a472

Warnings (81):

VerdictLocationMessage
-include/cxxopts.hpp:589:7variable '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:7variable '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:7variable '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:7variable '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:7variable '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:7variable 'arg' of type 'std::basic_string<char>' can be declared 'const'
-include/cxxopts.hpp:1734:3variable '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:5variable '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:7variable 'result' of type 'mapped_type &' (aka 'cxxopts::OptionValue &') can be declared 'const'
-include/cxxopts.hpp:1860:11variable 'name' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-include/cxxopts.hpp:1861:11variable '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:11variable 'value' of type 'std::shared_ptr<cxxopts::OptionDetails>' can be declared 'const'
-include/cxxopts.hpp:1895:9variable '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:9variable 'opt' of type 'std::shared_ptr<cxxopts::OptionDetails>' can be declared 'const'
-include/cxxopts.hpp:1932:8variable '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:5variable 'detail' of type 'std::shared_ptr<cxxopts::OptionDetails> &' can be declared 'const'
-include/cxxopts.hpp:1937:5variable 'store' of type 'mapped_type &' (aka 'cxxopts::OptionValue &') can be declared 'const'
-include/cxxopts.hpp:1989:3variable 'stringDesc' of type 'std::basic_string<char>' can be declared 'const'
-include/cxxopts.hpp:1990:3variable 'option' of type 'shared_ptr<_NonArray<cxxopts::OptionDetails>>' (aka 'shared_ptr<cxxopts::OptionDetails>') can be declared 'const'
-include/cxxopts.hpp:2021:3variable '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:3variable '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:5variable 's' of type 'String' (aka 'basic_string<char>') can be declared 'const'
-include/cxxopts.hpp:2068:3variable 'allowed' of type 'size_t' (aka 'unsigned long') can be declared 'const'
-include/cxxopts.hpp:2079:5variable 'd' of type 'String' (aka 'basic_string<char>') can be declared 'const'
-src/example.cpp:74:5variable 'result' of type 'ParseResult' can be declared 'const'
-src/example.cpp:152:5variable 'arguments' of type 'std::vector<KeyValue>' can be declared 'const'
-test/options.cpp:17:7variable 'len' of type 'size_t' (aka 'unsigned long') can be declared 'const'
-test/options.cpp:59:3variable 'argv' of type 'Argv' can be declared 'const'
-test/options.cpp:75:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:107:3variable 'argv' of type 'Argv' can be declared 'const'
-test/options.cpp:112:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:126:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:130:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:146:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:155:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:178:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:183:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:204:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:210:3variable 'old_argc' of type 'int' can be declared 'const'
-test/options.cpp:227:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:242:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:247:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:261:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:270:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:275:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:281:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:286:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:292:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:297:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:303:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:308:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:324:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:329:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:340:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:345:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:359:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:364:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:375:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:381:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:402:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:408:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:426:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:443:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:449:5variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:485:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:505:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:511:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:530:5variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:555:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:560:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:589:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:629:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:659:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:682:3variable 'av' of type 'Argv' can be declared 'const'
-test/options.cpp:702:3variable 'argv_' of type 'Argv' can be declared 'const'
-test/options.cpp:721:3variable 'help' of type 'cxxopts::Option' can be declared 'const'
-test/options.cpp:728:3variable 'argv' of type 'Argv' can be declared 'const'
-test/options.cpp:738:3variable 'result' of type 'ParseResult' can be declared 'const'
-test/options.cpp:753:3variable 'option_1' of type 'cxxopts::Option' can be declared 'const'
-test/options.cpp:758:3variable 'argv_' of type 'Argv' can be declared 'const'
-test/options.cpp:767:3variable 'result' of type 'ParseResult' can be declared 'const'

Generated from 3ddf6fa37f.