Questions tagged [iwyu]
20 questions
1
vote
1 answer
How to suppress IWYU system header errors?
When building with IWYU enabled I receive many errors regarding missing members and undeclared identifiers e.g:
'/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:153:8: error: no member named 'int8_t' in the global…

user7119460
- 1,451
- 10
- 20
0
votes
1 answer
How to configure iwyu to analyze header files in recursive way?
I want to configure iwyu to analyze the head file in a recursive way. It seems only one layer head file is be analyzed.
I apologize if it is a stuip problem.
I have a test case to demonstrate this.
// A.h
#ifndef A_H
#define A_H
class…

Xu Hui
- 1,213
- 1
- 11
- 24
0
votes
0 answers
How can I let iwyu iterates on a bunch of cpp&h files
So far, I have managed to operate iwyu on a single cpp file using the following command:
$ include-what-you-use $CXXFLAGS test.cpp
However, now I want to perform analysis on my project. I have written a script in python that selects all cpp and h…

Sibo
- 11
- 1
0
votes
1 answer
How to use include-what-you-use in my cpp project (win)?
Noob question here, but I can manage to install include-what-you-use...
Which files do I need to download and which is the correct folder I need to point CMAKE_PREFIX_PATH to? Or is there another way to use iwyu without building it myself?
I want to…

audev
- 31
- 2
0
votes
0 answers
How to use include-what-you-use on Debian 8.5
I'm trying to use include-what-you-use on Debian 8.5. I made a test program that simply includes and std::cout's "Hello, world" to the terminal. When I invoke iwyu on it, I get the following:
t1.cpp:1:10: fatal error: 'iostream' file…

Arcadio Alivio Sincero
- 678
- 6
- 16