iwyu - Analyze #includes in C and C++ source files

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: iwyu
Package version: 3.4
Package release: 1
Package architecture: amd64
Package type: deb
Installed size: 17.98 KB
Download size: 4.64 MB
Official Mirror: ftp.br.debian.org
"Include what you use" means this: for every symbol (type, function variable, or macro) that you use in foo.cc, either foo.cc or foo.h should #include a .h file that exports the declaration of that symbol. The include-what-you-use tool is a program that can be built with the clang libraries in order to analyze #includes of source files to find include-what-you-use violations, and suggest fixes for them. The main goal of include-what-you-use is to remove superfluous #includes. It does this both by figuring out what #includes are not actually needed for this file (for both .cc and .h files), and replacing #includes with forward-declares when possible.



    Binary package: iwyu_3.4-1_amd64.deb
    Source package: iwyu

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install iwyu deb package:
      # sudo apt-get install iwyu


    • /usr/bin/fix_include
    • /usr/bin/include-what-you-use
    • /usr/bin/iwyu
    • /usr/share/doc/iwyu/README.txt.gz
    • /usr/share/doc/iwyu/changelog.Debian.gz
    • /usr/share/doc/iwyu/copyright
    • /usr/share/man/man1/fix_include.1.gz
    • /usr/share/man/man1/include-what-you-use.1.gz
    • /usr/share/man/man1/iwyu.1.gz


    2014-05-06 - Sylvestre Ledru <sylvestre@debian.org> iwyu (3.4-1) unstable; urgency=medium * New upstream release * Add libncurses5-dev as a build deps * Add a watch file

    2014-01-15 - Sylvestre Ledru <sylvestre@debian.org> iwyu (3.3-4) unstable; urgency=medium * Make iwyu co-installable with clang 3.5 (Closes: #734900) * Standards-Version updated to 3.9.5 * Switch the default clang to 3.4

    2013-11-04 - Sylvestre Ledru <sylvestre@debian.org> iwyu (3.3-3) unstable; urgency=low * Remove the trailing debian/ from debian/control * Also ship fix_include in iwyu. It applies the changes (Closes: #728590) * Fix the clean of the package * Remove the "SEE ALSO" section from the manpage (Closes: #722225)

    2013-09-08 - Sylvestre Ledru <sylvestre@debian.org> iwyu (3.3-2) unstable; urgency=low * clang is a mandatory dependency (Closes: #722132)

    2013-08-29 - Sylvestre Ledru <sylvestre@debian.org> iwyu (3.3-1) unstable; urgency=low * Initial release (Closes: #721267)