Bug#722152: Should not suggest to use headers in bits/*

Vincent Bernat bernat at debian.org
Sun Sep 8 14:17:14 UTC 2013


Package: iwyu
Version: 3.3-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi!

On this simple test program:

#v+
#include <sys/socket.h>

int main() {
    int s = socket(AF_INET, SOCK_STREAM, 0);
    return s;
}
#v-

iwyu suggests this:

#v+
The full include-list for socket.c:
#include <sys/socket.h>
#include <bits/socket_type.h>           // for SOCK_STREAM
#v-

To the best of my knowledge, "bits" headers are not intended to be
included by regular programs. I have installed clang-3.3 to avoid
warning about stddef.h.

Totally unrelated, Vcs-* ends with debian/, so debcheckout +
svn-buildpackage does not work.

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iwyu depends on:
ii  libc6       2.17-92+b1
ii  libgcc1     1:4.8.1-10
ii  libstdc++6  4.8.1-10

iwyu recommends no packages.

iwyu suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBCAAGBQJSLIblAAoJEJWkL+g1NSX5NqkQAJhbJRqMg9H1Su9n1F7dBJNa
R0PvQfbDoqqRk4rISKv2mxRUMjL7U+oZENwphrzFRRcRwKL42SIlBvzx/v7IEu85
pRseDTW4ZLhMAmDw2AXmjvNtTXJkscODsH7+KGe8+DmbDlQD7mtq28XOl7l22T9Q
rRioWP0okLT+vV2/U+WxqynuaLf13wA32zOh8Gw7VPoxu1afGohEtxxQN6k7+B2O
jk+k0bWkaGHjrCPOptuysDJeilQLT6v8uNpuExbM3Rw8p28HrPEUX4kUHyQlanS9
atHVj4UcZ2D071XLVjmQjJ92LCcw0PkMj+3NXX57verbdqbEhM9Vj/hIlIQj4HQM
Q4SxoyEdRLbAbMdDrVBKrI0exLAzS8oM5pfu9d0tqKx5IRrPD6K/f/msSqokb5BB
iMu1aJ7/dQx9AleEu5auFvJ1FqVEzByWfc/5ivC8tKE9BZVd6ACSlTFvhpMuIXN6
nKN4bFUwphm+hHBb2Dn/jxphIn0IvfB53davvh+CS0Um4mlTY7OHRtMPcuvocxKG
7xTSv0jtzw8K+bUXxKQ1WaR37wZWqx+nCrtlaHoBRBI8wDjNftnq+mU1RYjvk7U0
nb8brfTIZSOdnAnWTJ6rZ+gz/v/6bvZLAeUlL3TSVdYtfPjQ8HCyz967VKNN8H0+
oJEIPA2TYuB/9tGNJ28T
=5mYH
-----END PGP SIGNATURE-----



More information about the Pkg-llvm-team mailing list