Options:
C++17
C++14
C++11
C11
C99
C89
Visual Studio 2013
Visual Studio 2015
Visual Studio 2019 (x64)
No Standard Library
No Extra Options File
MISRA C 2012
Debug MISRA C 2012 Essential Types
MISRA C 2004
MISRA C++ 2008
Other options:
Run
Clear
For Evaluation Purposes Only
/* Welcome to the PC-lint Plus interactive demo. Press the 'Run' button above to analyze the sample code in this text area using PC-lint Plus. Messages will be displayed under the corresponding line. The 'Clear' button will hide these messages. You can enter your own sample code to evaluate PC-lint Plus. The options above can be used to choose whether to use C or C++ and to enable optional features such as MISRA rule enforcement. Note that MISRA support should be used with the matching language. E.g. if using MISRA C 2012 the language (which defaults to C++17) should be changed to C99 or C11. */ #include
#include
/* Library Function Semantics */ /* Floating Point Value Tracking */ void r(double); void cr() { r(42); } void r(double x) { printf("%d", acos(x)); } /* Value Tracking */ int f(void); int g() { return f(); } int f() { static int x = g(); return x++; } /* Precision Bit Tracking */ void z(char c1, char c2) { if ( (c1 & 13) + (c2 & 8) == 6 ) { } } /* Value Tracking */ int w(int a) { int* p = new int; return 5 / a; } int q(int b, int c) { return w(0) + c; }