diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2020-11-23 22:41:02 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-11-30 13:05:34 -0800 |
commit | 87b96d82d8193092808e09668dd81ad553fd6513 (patch) | |
tree | 2b7bca40861722e7bac3e3a777b2438e743d165e /tools | |
parent | 7922fe8989f8d736999a7c34a89bd13f950e62a7 (diff) | |
download | gjs-87b96d82d8193092808e09668dd81ad553fd6513.tar.gz |
CI: Fix bug in IWYU postprocess script
This bug was causing includes to be dropped, because we would reset the
state to None directly after setting it to ADD when a new file was
started. Correct existing mistakes that were not caught due to the bug.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/process_iwyu.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py index cfd71fa2..9c28d126 100755 --- a/tools/process_iwyu.py +++ b/tools/process_iwyu.py @@ -97,6 +97,7 @@ FALSE_POSITIVES = ( # Weird false positive on some versions of IWYU ('gi/arg.cpp', 'struct _GHashTable;', ''), ('gi/arg.cpp', 'struct _GVariant;', ''), + ('gjs/profiler.cpp', '#include <gjs/profiler.h>', ''), ) @@ -131,8 +132,6 @@ def output(): print(f'{Colors.RED}-{line}{Colors.NORMAL}{why}') there_were_errors = True - state = None - file = None add.clear() remove.clear() all_includes.clear() |