https://github.com/sarcasm/run-iwyu
A wrapper script around include-what-you-use, suitable for linting multiple files and to use for continuous integration
https://github.com/sarcasm/run-iwyu
clang continuous-integration iwyu
Last synced: 10 months ago
JSON representation
A wrapper script around include-what-you-use, suitable for linting multiple files and to use for continuous integration
- Host: GitHub
- URL: https://github.com/sarcasm/run-iwyu
- Owner: Sarcasm
- License: mit
- Created: 2019-08-06T23:34:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-07T23:11:03.000Z (almost 7 years ago)
- Last Synced: 2025-02-28T10:57:37.353Z (over 1 year ago)
- Topics: clang, continuous-integration, iwyu
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=============
run-iwyu.py
=============
------------------------------------------------------
Lint files and directories with include-what-you-use
------------------------------------------------------
.. contents::
:local:
Introduction
============
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.
How to use?
===========
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