A New Krazy Checker for #include

David Jarvie lists at astrojar.org.uk
Sun Apr 8 19:20:34 BST 2007


On Sunday 08 April 2007 18:28:33 Allen Winter wrote:
> Howdy,
>
> I will be installing a new Krazy checker today that does some sanity
> checking of #include.   It doesn't do everything on my to-do list yet.

> Other ideas that I may implement one day (or maybe someone will do me):
> - if including an installed header, always use #include <foo.h>, not
> "foo.h" - foo.cpp should always include its own header foo.h first

What is the reason for this?

> - check if foo.h is needed at all
> - check if  include <foo.h> should be replaced with class Foo
> - an application should include its own, non-installed headers with
> #include ".."

Seems a useful set of checks :)

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm




More information about the kde-core-devel mailing list