Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - include-what-you-use

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: include-what-you-use 1:0.7-1

Git Clone URL: https://aur-dev.archlinux.org/include-what-you-use.git (read-only)
Package Base: include-what-you-use
Description: A tool for use with clang to analyze #includes in C and C++ source files
Upstream URL: http://include-what-you-use.org
Licenses: LLVM Release License
Submitter: Mindless
Maintainer: mmlb
Last Packager: mmlb
Votes: 14
Popularity: 1.011702
First Submitted: 2011-12-03 05:58
Last Updated: 2016-11-02 01:50

Latest Comments

1 2 Next › Last »

tegularius commented on 2016-09-06 21:21

makedepends should include cmake

mmlb commented on 2015-12-28 05:05

@Svenstaro that was by design since the previous version of IWYU is incompatible with 3.7. I just updated to latest released version that works with 3.7.

Svenstaro commented on 2015-09-29 05:42

This conflicts with llvm 3.7.0 in Arch because 3.7 is < 3.7.0.

mmlb commented on 2015-07-23 13:47

@nerzhul, fixed thanks!

nerzhul commented on 2015-07-21 10:08

Please add llvm as a dependancy to fix erikw error

mmlb commented on 2015-06-01 15:31

@erikw I've updated the package

mmlb commented on 2015-05-25 01:14

erikw are you using clang 3.6? That's not out yet, see https://code.google.com/p/include-what-you-use/issues/detail?id=185

In the meantime, maybe I should change the PKGBUILD to depend on the exact version of clang.

erikw commented on 2015-05-24 09:26

Compilation errors:

[ 7%] Building CXX object CMakeFiles/include-what-you-use.dir/iwyu.cc.o
In file included from /tmp/yaourt-tmp-erikw/aur-include-what-you-use/src/include-what-you-use/iwyu.cc:103:
In file included from /tmp/yaourt-tmp-erikw/aur-include-what-you-use/src/include-what-you-use/iwyu_ast_util.h:19:
/tmp/yaourt-tmp-erikw/aur-include-what-you-use/src/include-what-you-use/port.h:16:10: fatal error: 'llvm/Support/Compiler.h' file not found
#include "llvm/Support/Compiler.h"

mmlb commented on 2014-12-30 16:27

@xantares, did you take a look at the second script offered? The one that uses the compile_commands.json output? I could still throw in your adaptation, but if the python script works for you that would be a better option than continually hacking cmake "compilers".

xantares commented on 2014-12-29 13:38


iwyu cannot be used in a cmake project:

i adapted the wrapper script proposed as solution, could you include it ?

then in the install section add this:
# install wrapper for cmake usage
# from https://groups.google.com/forum/#!topic/include-what-you-use/N6441qSN9Og
install -m755 "$srcdir"/iwyu-wrapper "$pkgdir"/usr/bin/iwyu-clang
install -m755 "$srcdir"/iwyu-wrapper "$pkgdir"/usr/bin/iwyu-clang++