Примеры ошибок, обнаруженных с помощью диагностики V691


V691. Empirical analysis. It is possible that a typo is present inside the string literal. The 'foo' word is suspicious.


Chromium

V691 Empirical analysis. It is possible that a typo is present inside the string literal: "LocalizedName". The 'Localized' word is suspicious. onc_constants.cc 162


namespace cellular_apn {
  const char kAccessPointName[] = "AccessPointName";
  const char kName[] = "Name";
  const char kUsername[] = "Username";
  const char kPassword[] = "Password";
  const char kLocalizedName[] = "LocalizedName";
  const char kLanguage[] = "LocalizedName";
}

Perhaps there is no error, but the fragment should be reviewed by developers. I suspect that this should be written here: const char kLanguage[] = "Language";



Найденные ошибки

Проверено проектов
346
Собрано ошибок
13 124

А ты совершаешь ошибки в коде?

Проверь с помощью
PVS-Studio

Статический анализ
кода для C, C++, C#
и Java

goto PVS-Studio;