diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-02-08 23:40:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-02-11 09:41:35 +0100 |
commit | 6ff712db7f581c66b50b1b50506ae0a5c3089218 (patch) | |
tree | 1e7abd1cd2f987503dfecf2b86f6fc71b66c1bc2 /bin/find-unneeded-includes | |
parent | tdf#116851: some rtf files provide param with "-" for "edmins" (diff) | |
download | core-6ff712db7f581c66b50b1b50506ae0a5c3089218.tar.gz core-6ff712db7f581c66b50b1b50506ae0a5c3089218.zip |
find-unneeded-includes: Skip headers used only for compile test
As proposed in https://gerrit.libreoffice.org/#/c/67473/
Change-Id: Ibbc2d32dde2363502915cfeb036fa6f4ba568932
Reviewed-on: https://gerrit.libreoffice.org/67574
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'bin/find-unneeded-includes')
-rwxr-xr-x | bin/find-unneeded-includes | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index e955ae7d33e4..2bcf48604552 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -114,6 +114,11 @@ def ignoreRemoval(include, toAdd, absFileName, moduleRules): fileName = os.path.relpath(absFileName, os.getcwd()) + # Skip headers used only for compile test + if fileName == "cppu/qa/cppumaker/test_cppumaker.cxx": + if include.endswith(".hpp"): + return True + # yaml rules if "blacklist" in moduleRules.keys(): |