From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 21 08:36:06 2012 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 184AE106566C for ; Wed, 21 Mar 2012 08:36:06 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F2B8A8FC0A for ; Wed, 21 Mar 2012 08:36:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2L8a5Ei036344 for ; Wed, 21 Mar 2012 08:36:05 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2L8a5cv036341 for hackers@freebsd.org; Wed, 21 Mar 2012 08:36:05 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Wed, 21 Mar 2012 09:36:01 +0100 From: Baptiste Daroussin To: hackers@FreeBSD.org Message-ID: <20120321083601.GF9629@azathoth.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Wb5NtZlyOqqy58h0" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Playing with include-what-you-use shows interesting stuff X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 08:36:06 -0000 --Wb5NtZlyOqqy58h0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I've been playing with the include-what-you-use[1] llvm tool for some on my personnal projects, as it works very well, I have also played with it on our source tree starting with the bin directory. It shows some interesting results, while the default output is quite aggressive, I just chose to remove the "useless" headers in each sources. It show some interesting results which seems to come from maybe bad includes in some of our headers. Apparently some of the #include are false positive because others headers shouldn't include it for example (according to des) here is a diff showing what I find that can be removed: http://people.freebsd.org/~bapt/include-what-you-use.diff I think it shouldn't be applied as it but be more analyzed. regards, Bapt --Wb5NtZlyOqqy58h0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9pkvEACgkQ8kTtMUmk6EzTFgCgkHoubxhPED0QLLQFbF7BpjpG za4An1//HfUTChxamjFIgQ//kbXdJ/kt =8tki -----END PGP SIGNATURE----- --Wb5NtZlyOqqy58h0--