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.
Search Criteria
Package Details: include-what-you-use 0.22-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/include-what-you-use.git (read-only, click to copy) |
---|---|
Package Base: | include-what-you-use |
Description: | A tool for use with clang to analyze #includes in C and C++ source files |
Upstream URL: | https://include-what-you-use.org |
Keywords: | c c++ format header include iwyu |
Licenses: | LicenseRef-LLVM-Release-License |
Submitter: | Mindless |
Maintainer: | sebschrader (jetm) |
Last Packager: | jetm |
Votes: | 45 |
Popularity: | 0.52 |
First Submitted: | 2011-12-03 05:58 (UTC) |
Last Updated: | 2024-07-06 16:25 (UTC) |
Dependencies (10)
- clang (llvm-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- llvm-libs (llvm-libs-rocm-gitAUR, llvm-libs-gitAUR)
- python3 (python)
- cmake (cmake-gitAUR) (make)
- llvm (llvm-rocm-gitAUR, llvm-gitAUR, llvm-minimal-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
Required by (1)
Sources (1)
xantares commented on 2014-12-29 13:38 (UTC)
mmlb commented on 2014-09-05 18:15 (UTC)
@bchretien, thanks for the info its updated.
bchretien commented on 2014-08-29 11:39 (UTC)
This can be updated to 3.4: http://include-what-you-use.com/downloads/include-what-you-use-3.4.src.tar.gz
dom0 commented on 2014-05-05 20:47 (UTC)
makedepends should include cmake
hauptmech commented on 2014-04-26 08:51 (UTC)
Updated to clang 3.4
https://gist.github.com/hauptmech/11315155
christoph.gysin commented on 2012-10-24 15:53 (UTC)
@sseering: check https://aur.archlinux.org/packages.php?ID=63910
Mindless commented on 2012-06-02 03:53 (UTC)
"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.
sseering commented on 2012-06-02 03:47 (UTC)
Is there any was to nake this work with the current clang version?
Pinned Comments
jetm commented on 2023-11-10 00:05 (UTC) (edited on 2024-11-13 11:49 (UTC) by jetm)
IWYU v0.23
is out, butclang v19
has not been released in Arch Linux. Please don't flag out-of-date until the new clang version is available. Thanks.