Mixing MISRA lnt files with compiler/project lnt files

PC-lint Plus User Discussion
Post Reply
Dermis

Mixing MISRA lnt files with compiler/project lnt files

Post by Dermis » Wed Apr 03, 2019 10:57 pm

I am using PC-lint Plus 1.1 for Linux

I have an existing codebase linting with 0 reported issues using the following command line:
pclp64_linux -frz -w2 co-gcc.lnt project-gcc.lnt

I generated the co-gcc.lnt & project-gcc.lnt files with the bundled pclp_config.py file. I now want to add MISRA C 2012 checking to my project. I tried the following:
pclp64_linux -frz -w2 co-gcc.lnt project-gcc.lnt ${pc_lint_tool_dir}/lnt/au-misra3.lnt ${pc_lint_tool_dir}/lnt/au-misra3-amd1.lnt

but this is not producing additional warnings/errors (I intentionally introduced backward goto statements which should trigger a MISRA required clause). If I move the au-misra3.lnt files before the co-gcc.lnt & project-gcc.lnt files, it produces lots of noise from system headers.

What is the proper way of mixing .lnt files on the command line?

mmetivier

Re: Mixing MISRA lnt files with compiler/project lnt files

Post by mmetivier » Thu Apr 04, 2019 9:28 pm

Hmmm... we do something very similar and have *no* problems generating MISRA messages. Would it be possible to see your project's indirect files?

Post Reply