| 1163 | } |
| 1164 | |
| 1165 | void CheckClassImpl::noExplicitConstructorError(const Token *tok, const std::string &classname, bool isStruct) |
| 1166 | { |
| 1167 | const std::string message(std::string(isStruct ? "Struct" : "Class") + " '$symbol' has a constructor with 1 argument that is not explicit."); |
| 1168 | const std::string verbose(message + " Such, so called \"Converting constructors\", should in general be explicit for type safety reasons as that prevents unintended implicit conversions."); |
| 1169 | reportError(tok, Severity::style, "noExplicitConstructor", "$symbol:" + classname + '\n' + message + '\n' + verbose, CWE398, Certainty::normal); |
| 1170 | } |
| 1171 | |
| 1172 | void CheckClassImpl::uninitVarError(const Token *tok, bool isprivate, FunctionType functionType, const std::string &classname, const std::string &varname, bool derived, bool inconclusive, bool noCtor) |
| 1173 | { |
no test coverage detected