Skip to content

Instantly share code, notes, and snippets.

@aakbar5
Last active September 10, 2020 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aakbar5/268a2072138345893b7f82590dcc3d26 to your computer and use it in GitHub Desktop.
Save aakbar5/268a2072138345893b7f82590dcc3d26 to your computer and use it in GitHub Desktop.
include-what-you-need
# Ubuntu 18.04.3 LTS
# Installation
sudo apt-get update
sudo apt-get install -y build-essential cmake git zlib1g-dev libncurses5-dev llvm-6.0-dev libclang-6.0-dev libclang-6.0-dev clang-6.0
git clone https://github.com/include-what-you-use/include-what-you-use.git iwyu.git
cd iwyu.git
git checkout clang_6.0
mkdir -p build
cd build
cmake -DIWYU_LLVM_ROOT_PATH=/usr/lib/llvm-6.0 ..
make
make install
{
"label": "Run iwyu",
"command": "iwyu_tool.py",
"args": [
"-p",
"${workspaceRoot}/build"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": "$gcc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment