Policy on order of include guards and license texts

David Faure faure at kde.org
Sat Nov 7 13:35:43 UTC 2015


On Saturday 07 November 2015 00:23:31 Martin Walch wrote:
> Hi,
> 
> should include guards be put above or below the license text (for
> KDE in general)?

I have always always seen them below.
In Qt, in kdelibs, in KF5, in KDE apps code.

Someone might unearth an exception, of course, but I'm pretty sure
we always put the license text first.

> Should the answer also go into 
> https://techbase.kde.org/Policies/Kdelibs_Coding_Style
> ?

Feel free :)

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list