HP Code Advisor Diagnostics

Derived bar();
};
Action:
Do not declare a function to accept as paramater or return an abstract class type.
Reference:
ANSI/ISO C++ 10.4(3)
2325 inline specifier allowed on function declarations only
Cause:
The inline keyword is meaningful for function declarations only.
Example: inline int i;
Action:
Remove the inline keyword. For example: int i;
Reference:
ANSI/ISO C++ 10.4(3)
2329 local class member %n requires a definition
Cause:
Member functions of local classes must be defined within the class definition.
Example:
int main() {
struct Struct {
void foo();
};
Struct s;
s.foo();
}
Action:
Define all required member functions of the local classes inside the class itself.
Reference:
ANSI/ISO C++ 9.8(2)
2336 unknown external linkage specification
Cause:
The linkage specification provided in the code is not known to this compiler implementation.
The C and C++ linkage are two linkage specifications that a standard conformant compiler should
support and linkage specifications for other languages are implementation defined.
Example:extern "XYZ" int foo();
Action:
Provide a valid linkage specification allowed by the compiler,like C or C++ , for example:
extern "C" int foo();
Reference:
ANSI/ISO C++ 7.5 (3)
2340 value copied to temporary, reference to temporary used
Cause:
2325 inline specifier allowed on function declarations only 45