lkml.org 
[lkml]   [2012]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] [TRIVIAL] treewide: fix four odd angle bracket includes
From
Date
On Fri, 2012-07-20 at 10:28 +0200, Jiri Kosina wrote:
> Right, but ... I don't really see the value of switching either way, do
> you?

0) Sure I do, that's why I submitted this trivial patch in the first
place.

1) As I mentioned in the patch explanation: why bother using angle
brackets if one is actually including a header outside of the include
search patch?

2) It's unobvious to start the paths of a header in an angle bracket
include with "..". At least, it took me a while to figure out what these
four includes were actually doing, simply because they're rather odd.
(There are over 100000 angle bracket includes, and exactly four that
start with "..".)

3) To me this trivial patch is comparable to trivial patches I submitted
recently concerning other odd includes. In your for-next branch we now
have commit 6ac7d11527a31d01b566a5c45369180e326ff4f1 ("treewide: Put a
space between #include and FILE"), and commit
cc502bb741e1797290381da14dddb695ec1adbaf ("renesas_usbhs: cleanup quoted
includes"), and one similar commit. These all change includes that are
perfectly legal but a bit odd. And that makes these includes a bit
harder to understand, to git grep for, and to handle correctly in the
kind of scripts I use to find certain issues in the tree.


Paul Bolle



\
 
 \ /
  Last update: 2012-07-20 13:01    [W:0.053 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site