Stop reporting1746 within extern "C" code as its wrong!
In c++ code which is defining a C interface we get lots of 1746 errors. This is lint telling us to use const reference, how is that gonna work in C! These functions are in extern "C" scope so cannot use references. This seems like a bu/omission as of lint 9.0K.
4
votes
Craig Hutchinson
shared this idea
The requested behavior has been implemented in the upcoming PC-lint Plus.
-
Josef Angstenberger commented
extern "C" only forces the compiler to create C compatible names. It's still considered as C++ code, so lint is right in issueing the message.