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

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: LLVM Release License
Submitter: Mindless
Maintainer: mmlb
Last Packager: mmlb
Votes: 6
First Submitted: 2011-12-03 05:58
Last Updated: 2015-06-01 15:30

Dependencies (5)

Required by (0)

Sources

Latest Comments

Comment by mmlb

2015-06-01 15:31

@erikw I've updated the package

Comment by mmlb

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.

Comment by erikw

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"

Comment by mmlb

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".

Comment by xantares

2014-12-29 13:38

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

2014-09-05 18:15

@bchretien, thanks for the info its updated.

Comment by bchretien

2014-08-29 11:39

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

2014-05-05 20:47

makedepends should include cmake

Comment by hauptmech

2014-04-26 08:51

Updated to clang 3.4

https://gist.github.com/hauptmech/11315155

Comment by christoph.gysin

2012-10-24 15:53

@sseering: check https://aur.archlinux.org/packages.php?ID=63910

Comment by Mindless

2012-06-02 03:53

"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

2012-06-02 03:47

Is there any was to nake this work with the current clang version?