Cppcheck 2.5 |
Вышла новая версия статического анализатора для С и С++.
В новой версии:
В парсере:
Также анализатор теперь:
Добавлены новые проверки:
throw;.Примеры кода, которые демонстрируют новые проверки:
void f(std::string s) {
if (s = "123") {
}
}
Assignment in condition should probably be comparison
void func1(const bool flag) { try{ if(!flag) throw; } catch (int&) { ; } }
Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow.
If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
c, c++, cppcheck, статический анализ
http://feedproxy.google.com/~r/org/LOR/~3/rzR5RAV5_bQ/16404419
| Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |