yaml-cpp:

Run:44330621501
Check:main: misc-const-correctness
Status:ok
Time:3s
Warnings:101 (TP 0, FP 0, unclassified 101)
Source:jbeder/yaml-cpp/blob/8eb618e889c003457d73f7c54777603835677ff4

Warnings (101):

VerdictLocationMessage
-include/yaml-cpp/emitter.h:203:9variable 'isInScientificNotation' of type 'bool' can be declared 'const'
-include/yaml-cpp/emitter.h:204:9variable 'hasDot' of type 'bool' can be declared 'const'
-src/binary.cpp:16:3variable 'chunks' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/binary.cpp:17:3variable 'remainder' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/binary.cpp:84:5variable 'd' of type 'unsigned char' can be declared 'const'
-src/contrib/dragonbox.h:3308:29variable 'interval_type' of type 'interval_type::closed' can be declared 'const'
-src/contrib/dragonbox.h:3393:21variable 'interval_type' of type 'interval_type::symmetric_boundary' can be declared 'const'
-src/convert.cpp:34:3variable 'firstcaps' of type 'bool' can be declared 'const'
-src/convert.cpp:35:3variable 'rest' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-src/directives.cpp:8:3variable 'it' of type 'const_iterator' (aka '_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, std::basic_string<char>>>') can be declared 'const'
-src/emitter.cpp:215:3variable 'originalType' of type 'FlowType::value' can be declared 'const'
-src/emitter.cpp:251:3variable 'originalType' of type 'FlowType::value' can be declared 'const'
-src/emitter.cpp:730:3variable 'stringEscaping' of type 'StringEscaping::value' can be declared 'const'
-src/emitterstate.cpp:186:3variable 'lastIndent' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/emitterutils.cpp:66:3variable 'byteVal' of type 'int' can be declared 'const'
-src/emitterutils.cpp:246:5variable 'surrogatePair' of type 'std::pair<uint16_t, uint16_t>' (aka 'std::pair<unsigned short, unsigned short>') can be declared 'const'
-src/emitterutils.cpp:541:3variable 'encoded' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-src/emitterutils.cpp:567:3variable 'encoded' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-src/exp.cpp:15:8variable 'ch' of type 'char' can be declared 'const'
-src/exp.cpp:45:3variable 'value' of type 'unsigned int' can be declared 'const'
-src/exp.cpp:76:3variable 'escape' of type 'char' can be declared 'const'
-src/exp.cpp:79:3variable 'ch' of type 'char' can be declared 'const'
-src/exp.cpp:133:3variable 'msg' of type 'std::stringstream' (aka 'basic_stringstream<char>') can be declared 'const'
-src/fptostring.cpp:56:5variable 'c' of type 'char' can be declared 'const'
-src/fptostring.cpp:109:5variable 'diff' of type 'int' can be declared 'const'
-src/fptostring.cpp:164:5variable 'exp_digits_ct' of type 'int' can be declared 'const'
-src/memory.cpp:21:3variable 'pNode' of type 'shared_node' (aka 'std::shared_ptr<node>') can be declared 'const'
-src/node_data.cpp:115:5variable 'jt' of type 'std::_List_iterator<std::pair<YAML::detail::node *, YAML::detail::node *>>' can be declared 'const'
-src/node_data.cpp:252:5variable 'jt' of type 'std::_List_iterator<std::pair<YAML::detail::node *, YAML::detail::node *>>' can be declared 'const'
-src/node_data.cpp:258:3variable 'it' of type '__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *, YAML::detail::node *> *, std::vector<std::pair<YAML::detail::node *, YAML::detail::node *>>>' can be declared 'const'
-src/nodeevents.cpp:16:3variable 'it' of type 'const_iterator' (aka '_Rb_tree_const_iterator<std::pair<const YAML::detail::node_ref *const, unsigned long>>') can be declared 'const'
-src/nodeevents.cpp:35:10variable 'element' of type 'value_type' (aka 'node_iterator_value<const YAML::detail::node>') can be declared 'const'
-src/nodeevents.cpp:38:10variable 'element' of type 'value_type' (aka 'node_iterator_value<const YAML::detail::node>') can be declared 'const'
-src/nodeevents.cpp:79:12variable 'element' of type 'value_type' (aka 'node_iterator_value<const YAML::detail::node>') can be declared 'const'
-src/nodeevents.cpp:85:12variable 'element' of type 'value_type' (aka 'node_iterator_value<const YAML::detail::node>') can be declared 'const'
-src/nodeevents.cpp:95:3variable 'it' of type 'const_iterator' (aka '_Rb_tree_const_iterator<std::pair<const YAML::detail::node_ref *const, int>>') can be declared 'const'
-src/ostream_wrapper.cpp:34:8variable 'ch' of type 'char' can be declared 'const'
-src/parser.cpp:36:3variable 'oldPos' of type 'int' can be declared 'const'
-src/parser.cpp:48:3variable 'newPos' of type 'int' can be declared 'const'
-src/parser.cpp:60:5variable 'token' of type 'Token &' can be declared 'const'
-src/regeximpl.h:45:3variable 'source' of type 'StringCharSource' can be declared 'const'
-src/regeximpl.h:50:3variable 'source' of type 'StreamCharSource' can be declared 'const'
-src/regeximpl.h:137:5variable 'n' of type 'int' can be declared 'const'
-src/regeximpl.h:152:5variable 'n' of type 'int' can be declared 'const'
-src/regeximpl.h:176:5variable 'n' of type 'int' can be declared 'const'
-src/scanner.cpp:70:7variable 'token' of type 'Token &' can be declared 'const'
-src/scanner.cpp:251:5variable 'n' of type 'int' can be declared 'const'
-src/scanscalar.cpp:78:7variable 'ch' of type 'char' can be declared 'const'
-src/scanscalar.cpp:153:5variable 'nextEmptyLine' of type 'bool' can be declared 'const'
-src/scanscalar.cpp:154:5variable 'nextMoreIndented' of type 'bool' can be declared 'const'
-src/scantag.cpp:22:5variable 'n' of type 'int' can be declared 'const'
-src/scantag.cpp:69:5variable 'n' of type 'int' can be declared 'const'
-src/scantoken.cpp:21:3variable 'name' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-src/scantoken.cpp:22:3variable 'params' of type 'std::vector<std::string>' (aka 'std::vector<basic_string<char>>') can be declared 'const'
-src/scantoken.cpp:68:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:81:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:94:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:95:3variable 'ch' of type 'char' can be declared 'const'
-src/scantoken.cpp:96:3variable 'flowType' of type 'FLOW_MARKER' can be declared 'const'
-src/scantoken.cpp:98:3variable 'type' of type 'Token::TYPE' can be declared 'const'
-src/scantoken.cpp:120:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:121:3variable 'ch' of type 'char' can be declared 'const'
-src/scantoken.cpp:124:3variable 'flowType' of type 'FLOW_MARKER' can be declared 'const'
-src/scantoken.cpp:129:3variable 'type' of type 'Token::TYPE' can be declared 'const'
-src/scantoken.cpp:147:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:167:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:186:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:194:3variable 'isSimpleKey' of type 'bool' can be declared 'const'
-src/scantoken.cpp:218:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:234:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:235:3variable 'indicator' of type 'char' can be declared 'const'
-src/scantoken.cpp:271:5variable 'tag' of type 'std::string' (aka 'basic_string<char>') can be declared 'const'
-src/scantoken.cpp:317:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:339:3variable 'quote' of type 'char' can be declared 'const'
-src/scantoken.cpp:340:3variable 'single' of type 'bool' can be declared 'const'
-src/scantoken.cpp:344:3variable 'end' of type 'RegEx' can be declared 'const'
-src/scantoken.cpp:358:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:390:3variable 'mark' of type 'Mark' can be declared 'const'
-src/scantoken.cpp:391:3variable 'indicator' of type 'char' can be declared 'const'
-src/scantoken.cpp:396:3variable 'n' of type 'int' can be declared 'const'
-src/scantoken.cpp:398:5variable 'ch' of type 'char' can be declared 'const'
-src/singledocparser.cpp:55:3variable 'depthguard' of type 'DepthGuard<500>' can be declared 'const'
-src/singledocparser.cpp:64:3variable 'mark' of type 'Mark' can be declared 'const'
-src/singledocparser.cpp:178:5variable 'token' of type 'Token' can be declared 'const'
-src/singledocparser.cpp:225:5variable 'token' of type 'Token &' can be declared 'const'
-src/singledocparser.cpp:264:5variable 'token' of type 'Token' can be declared 'const'
-src/singledocparser.cpp:303:5variable 'token' of type 'Token &' can be declared 'const'
-src/singledocparser.cpp:332:5variable 'nextToken' of type 'Token &' can be declared 'const'
-src/singledocparser.cpp:347:3variable 'mark' of type 'Mark' can be declared 'const'
-src/singledocparser.cpp:402:3variable 'token' of type 'Token &' can be declared 'const'
-src/singledocparser.cpp:406:3variable 'tagInfo' of type 'Tag' can be declared 'const'
-src/singledocparser.cpp:412:3variable 'token' of type 'Token &' can be declared 'const'
-src/singledocparser.cpp:430:3variable 'it' of type 'const_iterator' (aka '_Rb_tree_const_iterator<std::pair<const std::basic_string<char>, unsigned long>>') can be declared 'const'
-src/stream.cpp:205:5variable 'ch' of type 'std::istream::int_type' (aka 'int') can be declared 'const'
-src/stream.cpp:209:5variable 'charType' of type 'UtfIntroCharType' can be declared 'const'
-src/stream.cpp:210:5variable 'newState' of type 'UtfIntroState' can be declared 'const'
-src/stream.cpp:264:3variable 'ch' of type 'char' can be declared 'const'
-src/stream.cpp:276:7variable 'ch2' of type 'char' can be declared 'const'
-src/stream.cpp:359:3variable 'nBigEnd' of type 'int' can be declared 'const'
-src/stream.cpp:388:7variable 'chLow' of type 'unsigned long' can be declared 'const'
-src/stream.cpp:456:3pointee of variable 'pIndexes' of type 'int *' can be declared 'const'

Generated from 3ddf6fa37f.