Questions tagged [pc-lint]

A commercial software static analysis tool produced by Vector Informatik (originally by Gimpel Software) for the C and C++ languages. PC-lint examines C or C++ programs and finds potential problem areas. PC-lint can look across several modules which allows it to determine issues that a compiler normally does not point out. Options also exist for the detection of MISRA rule violations. This tag is for questions regarding the usage of PC-lint/PC lint Plus.

137 questions
0
votes
1 answer

How could PC-Lint work with an interrupt?

I have the following code snippet for a PIC controller: void __interrupt() ISR(void { // do some stuff } when I use PC-Lint I always get the error message: Error 10: Expecting identifier or other declarator What can I do to handle the…
Mike
  • 4,041
  • 6
  • 20
  • 37
0
votes
0 answers

PCLint "This file requires compiler and library support" error

I've been trying to get run PC-Lint and through various tries it still gives me this error
wheeeper
  • 1
  • 1
0
votes
0 answers

Ignoring a warning in lint

We use PC-Lint in our project for finding out any warning in the project. I want to ignore a specifc warning of a specific rule, I went through the documentation of the lint on how to supress the warning, I have used multiple methods shows…
Aashu10
  • 49
  • 10
0
votes
2 answers

How could PC-Lint ignore an expression or macro

I have got a xc8 program where I predefine the EEPROM: __EEPROM_DATA (1, 2, 3, 4, 5, 6, 7, 8); Know I like PC-Lint to ignore such an expression in all my files.
Mike
  • 4,041
  • 6
  • 20
  • 37
0
votes
2 answers

PC Lint for incremental build - with error from latest code

I am having a CI setup with incremental build. As part of the static checking, I am planning to configure a incremental PC Lint report - This report ignoring all other previous Lint report should provide the errors induced in the new code only. Is…
kumar_m_kiran
  • 3,982
  • 4
  • 47
  • 72
0
votes
2 answers

PC-Lint Misra 10.1 Error on Boolean Expression

PC-Lint version 9.00L looks at this code: typedef unsigned char boolean_t; //This is actually in a system header file. ... /* The rest is in the .c file I'm working on. */ boolean_t booleanVal ... uint8_t maskedVal; maskedVal = 0;…
Sam Skuce
  • 1,666
  • 14
  • 20
0
votes
1 answer

What is the syntax for PC-Lint ( In Scan for compiler warning) in jenkins Pipeline

I have started porting my existing Jenkins job to Jenkins Pipeline. When it came to port the Scan for compiler warning in Post-build action, I started getting issues. First I tried to port PC-Lint. Used the following code stage ('Warnings…
RejeeshChandran
  • 4,168
  • 3
  • 21
  • 32
0
votes
1 answer

Force Macro Argument to certain type

I am running pc lint on my code and I am getting the following warning Converting enum 'TEST_VALUE' to 'int. Can a macro like a function force the parameter to be a certain type or is it always just an int. I know I could just have the function…
homeGrown
  • 375
  • 1
  • 8
  • 25
0
votes
0 answers

No PCLInt warnings are displayed

I have given proper path to PCLint error log in jenkins job for PCLint compiler-Scan workspace files. After executing job i got below error message: Successfully parsed file D:........\abc.lint with 0 unique warnings and 0 duplicates. Skipping…
SwapJ
  • 1
  • 1
0
votes
0 answers

Pc-lint doesnt understand types from a included header file

I'm trying to use PC-lint on a large C project that uses a 3rd party compiler (TASKING TriCore v4.1r2). Lint reports loads of errors but most of them seem to be just lint not working properly, which is probably due to my configuration. So im…
Milos Matovic
  • 171
  • 2
  • 12
0
votes
1 answer

Can you get PC Lint to ignore certain special enums like 'myenum_min' and 'myenum_max'

So given the following code: typedef enum { myenum_a = 1, myenum_b = 2, myenum_c = 3, myenum_max = 4 }myenum_t; then later myenum_t test; switch (test) { case myenum_a: { // do stuff } case myenum_b: …
code_fodder
  • 15,263
  • 17
  • 90
  • 167
0
votes
2 answers

PCLint analyse some files partly

We are using PCLint to analyse our Rhapsody generated code and would like to ignore errors from the framework code, which is not written by us. This means that PCLint should analyse some files partly using the annotations generated by Rhapsody. For…
Murat Şeker
  • 1,651
  • 1
  • 16
  • 29
0
votes
2 answers

Integrate pc-lint in notepad++

Has anyone come across a way to integrate pc-lint with notepad++ ? I have searched across the web but could not get a good answer. A good solution would involve line jump to the mentioned line error. Lint explanations for other languages are out…
0
votes
1 answer

How to Run PC-Lint on only locally modified files(Not commited on Server of SVN)

I am trying to write script to run PC-Lint Static analyzer tool on only locally modified files by user and not on whole project. For that I need to run Lint command on all locally modified files using svn status svn status -u | grep -w M command…
hemal
  • 1
  • 1
0
votes
1 answer

FlexeLint/PC-lint is warning about that return value of std::string::append is not considered

FlexeLint/PC-lint is warning about that the return value of std::string::append is not considered on following reduced sample code: #include #include int main() { std::string s("Hell"); s.append(1,'o'); std::cout << s <<…
orbitcowboy
  • 1,438
  • 13
  • 25