User forums > Using Code::Blocks

Code::Blocks and lint

<< < (2/3) > >>

tilmannreh:

--- Quote from: oBFusCATed on November 17, 2016, 09:25:14 pm ---Probably check the valgrind plugin or something similar.
How is lint given the files to parse?

--- End quote ---

LINT is invoked with a small batch file that provides some configuration information and a list of files to be parsed to the LINT executable. The output of LINT can be directed to a file, which I currently use to look at the results.

The configuration files contain information about the global definitions of the compiler and the project, as well as some parameters for the output format.

I was hoping that someone already used CB with LINT so I could avoid reinventing the wheel... Basically, it's about how to invoke LINT from CB (probably as another target, as mentioned earlier), how to configure LINT to provide a useful output format, and how to configure CB to parse this output correctly.

oBFusCATed:
Can it work on a single file?
You can probably try to setup a compiler that calls lint.

tilmannreh:

--- Quote from: oBFusCATed on November 18, 2016, 07:45:31 pm ---Can it work on a single file?
You can probably try to setup a compiler that calls lint.

--- End quote ---

Yes, it also works on single files, and yes, most probably setting up LINT as a compiler is the way to go (see the second post in this thread).

I was just asking if someone already did this and would perhaps share the detail information so I don't need to reinvent the wheel (and repeat all the mistakes).

oBFusCATed:
Then we wait for Morten to come back and answer you.

tilmannreh:

--- Quote from: oBFusCATed on November 19, 2016, 01:44:39 pm ---Then we wait for Morten to come back and answer you.

--- End quote ---

Do you have any idea when that might be?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version