I have been running pc-lint on a Tiva TM4C project and I noticed when using <string.h> there is a pclint warning:
Issue 451: (Warning -- Header file 'C:\ti\ccsv6\tools\compiler\arm_5.1.9\include\string.h' repeatedly included but does not have a standard include guard [MISRA 2012 Directive 4.10, required])
looking inside string.h, the #endif for the include guard is not at the end of the file, but before this section for C++:
#if defined(__cplusplus) && !defined(_CPP_STYLE_HEADER)
using std::size_t;
using std::strlen;
...
#endif /* _CPP_STYLE_HEADER */
#endif /* ! _STRING */
I am using 5.1.9 but <string.h> is the same in 5.1.12.
Is there a reason why this section is outside the include guard, or is this a bug in the library file?
Thanks!