Join GitHub today
include what you use
Installation on Mac
Easy installation requires Homebrew.
brew tap jasonmp85/iwyu
brew install iwyu
More details: https://github.com/jasonmp85/homebrew-iwyu
Running include-what-you-use on the parser
Once iwyu has been installed:
make -k test/test-models/stanc CC=iwyu &> iwyu.out
-kflag continues running make in the presence of errors. iwyu always returns an error code, so omitting that will stop at the first compilation.
CC=iwyujust replaces the compiler with iwyu. iwyu doesn't support the full set of compiler flags, so it'll put up warnings about some of our compiler flags.
&> iwyu.outjust grabs the output in both the stdout and stderr and puts it into iwyu.out.
Running include-what-you-use on the rest of the code base
I haven't figured it out yet.