Examples of errors detected by the V691 diagnostic


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";



Bugs Found

Checked Projects
363
Collected Errors
13 495