Suggestions for kdev-cppcheck

Kevin Funk kfunk at kde.org
Sat Nov 22 08:38:21 UTC 2014


Heya Christoph,

are you still planning to bring the cppcheck plugin forward? Just recently I 
started to play around with it, and liked it so far.

Some remarks:
- Would you be interested in using the model/views from the problemreporter 
plugin instead? This gives you a lot more flexibility:
  - Allows you to "jump" to the error
  - Implements "Jump to next / previous" actions
  - Provides sorting and/or filtering by severity
  - In general: A lot more integrated in KDevelop already

All you need to do is to create KDevelop::Problem instances in your plugin, 
and stick them into the problem model. I'd take care of getting the 
problemreporter interfaces ready for external users (it hasn't been used from 
the outside yet, afaik).

With all this in place, I think the cppcheck plugin could get highly useful 
while only having very few LOC.

What do you think?

-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org


More information about the KDevelop-devel mailing list