How to Install and Uninstall iwyu Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 19,2024

1. Install "iwyu" package

Here is a brief guide to show you how to install iwyu on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install iwyu

2. Uninstall "iwyu" package

Please follow the instructions below to uninstall iwyu on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove iwyu $ sudo apt autoclean && sudo apt autoremove

3. Information about the iwyu package on Ubuntu 20.10 (Groovy Gorilla)

Package: iwyu
Architecture: amd64
Version: 8.0-4
Priority: extra
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 26450
Depends: libc6 (>= 2.14), libllvm9 (>= 1:9~svn298832-1~), libstdc++6 (>= 9), clang | clang-4.0 | clang-5.0 | clang-6.0 | clang-7 | clang-8 | clang-9 | clang-10, python3
Filename: pool/universe/i/iwyu/iwyu_8.0-4_amd64.deb
Size: 5055140
MD5sum: 7f363cc4ec723f02657c72acb24dfdca
SHA1: c08ab36aa6ee33d111653a0e4d6ee607b86d6177
SHA256: b97ade4dc5c88d34c9af6db87879a176a0c313cdb3434817f76acaf215d9048a
SHA512: 1a99fffe17d9f4da5f0c0c844b25e354541eb104960a880372668a91d0224f99f7739b510a729dad1d50c9c0902c0d86173273db88ee21e3649809a1fd32c4e8
Homepage: https://include-what-you-use.org/
Description-en: Analyze #includes in C and C++ source files
"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.
Description-md5: 9a2968593adb5f99f5bf60fc4f4f341a