[webkit-dev] coding style of #include statements

Patrick Roland Gansterer paroga at paroga.com
Wed Nov 3 04:45:46 PDT 2010


Currently, the style guidelines specify "Includes of system headers must
come after includes of other headers. "
But what about WebKit headers in arrow brackets?

What is the correct style:

#include "ArgumentEncoder.h"
#include "WorkItem.h"
#include <wtf/HashSet.h>
#include <wtf/OwnPtr.h> 
#include <QApplication>
#include <QLocalServer>

or 

#include "ArgumentEncoder.h"
#include "WorkItem.h"
#include <QApplication>
#include <QLocalServer>
#include <wtf/HashSet.h>
#include <wtf/OwnPtr.h> 

I prefere the first one because <wtf/*.h> aren't real system headers.

- Patrick


More information about the webkit-dev mailing list