@erikw I've updated the package
Search Criteria
Package Details: include-what-you-use 1:0.4-1
Package Actions
| 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://code.google.com/p/include-what-you-use/ |
| Category: | devel |
| Licenses: | |
| Submitter: | Mindless |
| Maintainer: | mmlb |
| Last Packager: | mmlb |
| Votes: | 6 |
| First Submitted: | 2011-12-03 05:58 |
| Last Updated: | 2015-06-01 15:30 |
Latest Comments
Comment by mmlb
Comment by mmlb
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.
Comment by erikw
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"
Comment by mmlb
@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".
Comment by xantares
hello,
iwyu cannot be used in a cmake project:
https://groups.google.com/forum/#!topic/include-what-you-use/N6441qSN9Og
i adapted the wrapper script proposed as solution, could you include it ?
https://gist.github.com/xantares/811044f4a1d082531f48
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++
xan.
Comment by mmlb
@bchretien, thanks for the info its updated.
Comment by bchretien
This can be updated to 3.4: http://include-what-you-use.com/downloads/include-what-you-use-3.4.src.tar.gz
Comment by dom0
makedepends should include cmake
Comment by hauptmech
Updated to clang 3.4
https://gist.github.com/hauptmech/11315155
Comment by christoph.gysin
@sseering: check https://aur.archlinux.org/packages.php?ID=63910
Comment by Mindless
"Include what you use makes heavy use of clang internals, and occasionally break when clang is updated." -- I wouldn't count on it unless they update it to match; I haven't tried it though, so you'd have to give it a try to know.
Comment by sseering
Is there any was to nake this work with the current clang version?