Skip to content

Instantly share code, notes, and snippets.

@martinmoene
Last active July 21, 2017 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinmoene/affd03ccce4d438f0dbd5cf64fe23907 to your computer and use it in GitHub Desktop.
Save martinmoene/affd03ccce4d438f0dbd5cf64fe23907 to your computer and use it in GitHub Desktop.
lest Static Analyses
PVS-Studio 6.16
ReSharper C++ 2017.1.3
VC-CppCoreCheck-released (VS 2017)
V813 Decreased performance. The 'message' argument should probably be rendered as a constant reference. 05-select lest.hpp 423
V813 Decreased performance. The 'message' argument should probably be rendered as a constant reference. 05-select lest.hpp 428
V813 Decreased performance. The 'type' argument should probably be rendered as a constant reference. 05-select lest.hpp 433
V813 Decreased performance. The 'words' argument should probably be rendered as a constant reference. 05-select lest.hpp 781
V813 Decreased performance. The 'word' argument should probably be rendered as a constant reference. 05-select lest.hpp 784
V813 Decreased performance. The 'note' argument should probably be rendered as a constant reference. 05-select lest.hpp 789
V813 Decreased performance. The 'test' argument should probably be rendered as a constant reference. 05-select lest.hpp 803
V813 Decreased performance. The 'whats', 'line' arguments should probably be rendered as constant references. 05-select lest.hpp 829
V813 Decreased performance. The 'test' argument should probably be rendered as a constant reference. 05-select lest.hpp 908
V820 The 'test' variable is not used after copying. Copying can be replaced with move/swap for optimization. 05-select lest.hpp 910
V813 Decreased performance. The 'testing' argument should probably be rendered as a constant reference. 05-select lest.hpp 932
V813 Decreased performance. The 'name' argument should probably be rendered as a constant reference. 05-select lest.hpp 938
V813 Decreased performance. The 'testing' argument should probably be rendered as a constant reference. 05-select lest.hpp 958
V813 Decreased performance. The 'num' argument should probably be rendered as a constant reference. 05-select lest.hpp 1115
V813 Decreased performance. The 'opt', 'arg' arguments should probably be rendered as constant references. 05-select lest.hpp 1125
V813 Decreased performance. The 'opt', 'arg' arguments should probably be rendered as constant references. 05-select lest.hpp 1136
V813 Decreased performance. The 'args' argument should probably be rendered as a constant reference. 05-select lest.hpp 1155
V813 Decreased performance. The 'arguments' argument should probably be rendered as a constant reference. 05-select lest.hpp 1249
V813 Decreased performance. The 'specification' argument should probably be rendered as a constant reference. 05-select lest.hpp 1275
..\..\..\lest\include\lest\lest.hpp:31 Possibly unused #include directive
..\..\..\lest\include\lest\lest.hpp:276 Implicit default constructor is not available because field 'passed' needs to be initialized
..\..\..\lest\include\lest\lest.hpp:281 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:297 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:298 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:371 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:386 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:402 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:402 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:506 Function 'auto lest::is_streamable<T>::test<U>(int) -> decltype(std::declval<std::basic_ostream<char>&>() << std::declval<U>() , std::true_type())' which is a template or has template parents is not implemented
..\..\..\lest\include\lest\lest.hpp:509 Function 'auto lest::is_streamable<T>::test<typename>(...) -> std::false_type' which is a template or has template parents is not implemented
..\..\..\lest\include\lest\lest.hpp:522 Function 'auto lest::is_container<T>::test<U>(int) -> decltype(std::declval<U>().begin() == std::declval<U>().end() , std::true_type())' which is a template or has template parents is not implemented
..\..\..\lest\include\lest\lest.hpp:525 Function 'auto lest::is_container<T>::test<typename>(...) -> std::false_type' which is a template or has template parents is not implemented
..\..\..\lest\include\lest\lest.hpp:584 Redundant 'else' keyword
..\..\..\lest\include\lest\lest.hpp:591 Redundant 'else' keyword
..\..\..\lest\include\lest\lest.hpp:676 Use auto
..\..\..\lest\include\lest\lest.hpp:680 Use auto
..\..\..\lest\include\lest\lest.hpp:714 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:716 Non-explicit conversion operator
..\..\..\lest\include\lest\lest.hpp:854 Use auto
..\..\..\lest\include\lest\lest.hpp:918 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:923 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:924 Member function may be 'static'
..\..\..\lest\include\lest\lest.hpp:930 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:956 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:976 Non-explicit converting constructor
..\..\..\lest\include\lest\lest.hpp:1013 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:1015 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:1030 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:1030 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:1051 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:1053 Member function may be 'const'
..\..\..\lest\include\lest\lest.hpp:1090 Use auto
..\..\..\lest\include\lest\lest.hpp:1138 Use auto
..\..\..\lest\include\lest\lest.hpp:1159 Use auto
..\..\..\lest\include\lest\lest.hpp:1178 Redundant empty statement
..\..\..\lest\include\lest\lest.hpp:1234 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:1234 Redundant parentheses
..\..\..\lest\include\lest\lest.hpp:267 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:310 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:402 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:402 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:402 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:472 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:602 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:665 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:968 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1117 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1122 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1122 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1151 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1152 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1166 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1187 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1254 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1280 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1286 Qualifier is redundant
..\..\..\lest\include\lest\lest.hpp:1292 Qualifier is redundant
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(421): warning C26497: This function lest::is_true could be marked constexpr if compile-time evaluation is desired. (f.4: https://go.microsoft.com/fwlink/p/?LinkID=784970)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(650): warning C26496: Variable 'chr' is assigned only once, mark it as const. (con.4: https://go.microsoft.com/fwlink/p/?LinkID=784969)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(683): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(686): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(686): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(831): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(879): warning C26497: This function lest::indefinite could be marked constexpr if compile-time evaluation is desired. (f.4: https://go.microsoft.com/fwlink/p/?LinkID=784970)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(940): warning C26496: Variable 'none' is assigned only once, mark it as const. (con.4: https://go.microsoft.com/fwlink/p/?LinkID=784969)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(960): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1161): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1234): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1277): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1092): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1289): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1283): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1295): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1295): warning C26481: Don't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(706): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(598): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(608): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(636): warning C26496: Variable '<range>$L0' is assigned only once, mark it as const. (con.4: https://go.microsoft.com/fwlink/p/?LinkID=784969)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(635): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(638): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(640): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(556): warning C26493: Don't use C-style casts that would perform a static_cast downcast, const_cast, or reinterpret_cast. (type.4: http://go.microsoft.com/fwlink/p/?LinkID=620420)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(718): warning C26485: Expression 'rhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(718): warning C26485: Expression 'rhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1289): warning C26485: Expression 'specification': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1283): warning C26485: Expression 'specification': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(720): warning C26485: Expression 'rhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(720): warning C26485: Expression 'rhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(731): warning C26485: Expression 'operand': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(1295): warning C26485: Expression 'specification': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(714): warning C26485: Expression 'lhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(706): warning C26485: Expression 'rhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
d:\own\martin\cloud\dropbox\project\github\lest-variants\lest\include\lest\lest.hpp(706): warning C26485: Expression 'lhs': No array to pointer decay. (bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment