Re: RFC: Coding style: require alphabetical header file sorting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 03, 2012 at 04:45:26PM +0000, Daniel P. Berrange wrote:
> Thus far we only have one rule about header files, #include <config.h>
> must be first in all .c files.  I'm wondering if it is time to introduce
> some new rules
> 
>  - All system headers must be grouped to preceed all local headers
>  - All system headers must be sorted within their group
>  - All local headers must be sorted within their group
> 
> This will require updating pretty much every single source and header
> file in the tree. Of course it will need a new syntax check rule to
> validate this too.  Since fixing them is a serious amount of work,
> I was wondering about people's opinions on this ?
> 
> The goal is just standardization to make code a little more readable.

FYI, looking at this, I think it is not worth doing until we have
renamed all the files in src/util to have a 'vir' prefix.

We should then probably require that  util headers are included first,
then the driver specific headers, or something like that

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]