| 3861 | } |
| 3862 | |
| 3863 | void SymbolDatabase::returnImplicitIntError(const Token *tok) const |
| 3864 | { |
| 3865 | if (tok && mSettings.severity.isEnabled(Severity::portability) && (tok->isC() && mSettings.standards.c != Standards::C89)) { |
| 3866 | const std::list<const Token*> locationList(1, tok); |
| 3867 | const ErrorMessage errmsg(locationList, &mTokenizer.list, |
| 3868 | Severity::portability, |
| 3869 | "returnImplicitInt", |
| 3870 | "Omitted return type of function '" + tok->str() + "' defaults to int, this is not supported by ISO C99 and later standards.", |
| 3871 | Certainty::normal); |
| 3872 | mErrorLogger.reportErr(errmsg); |
| 3873 | } |
| 3874 | } |
| 3875 | |
| 3876 | const Function* Type::getFunction(const std::string& funcName) const |
| 3877 | { |