Skip to content

A wrapper script around include-what-you-use, suitable for linting multiple files and to use for continuous integration

License

Notifications You must be signed in to change notification settings

Sarcasm/run-iwyu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-iwyu.py

Lint files and directories with include-what-you-use

A wrapper script around include-what-you-use, suitable for linting multiple files and to use for continuous integration.

This is an alternative to iwyu-tool.py, that returns a sensible exit code, and make it easy to run on a subset of a compilation database.

Copy run-iwyu.py in your project, then run it on specific files or whole directories:

./run-iwyu.py -b build/ src include foo.cpp

It's possible to exclude paths from the recursive search:

./run-iwyu.py \
    --exclude src/third_party \
    --exclude '*_test.cpp' \
    src include

About

A wrapper script around include-what-you-use, suitable for linting multiple files and to use for continuous integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published