diff options
Diffstat (limited to 'pw_toolchain/py/pw_toolchain/clang_tidy.py')
-rw-r--r-- | pw_toolchain/py/pw_toolchain/clang_tidy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pw_toolchain/py/pw_toolchain/clang_tidy.py b/pw_toolchain/py/pw_toolchain/clang_tidy.py index 12a707e08..fd7c625f0 100644 --- a/pw_toolchain/py/pw_toolchain/clang_tidy.py +++ b/pw_toolchain/py/pw_toolchain/clang_tidy.py @@ -104,7 +104,9 @@ def _filter_include_paths(args: Iterable[str], for arg in args: if arg.startswith('-I'): path = Path(arg[2:]).as_posix() - if any(path.endswith(f) for f in filters): + if any( + path.endswith(f) or re.match(f, str(path)) + for f in filters): yield '-isystem' + arg[2:] continue |