LS.CALL.STRING
Suspicious use of non-localized string in GUI function
Localized string call is used to check for the use of non-localized string directly (in the function argument) in customer facing functions.
Important: This is an experimental checker.
Code example
Copy
int main()
{
print_string(“Non-Localized String”); // Line 3. LS.CALL.STRING
return 0;
}
Klocwork produces a Localized String report for line 3 indicating that there is a potential call to GUI functions using a non-localized string.
Note: In order to detect the issue, the above code should be run with a KB that has the following record: print_string - xLS 1:$1:1