bin/find-unneeded-includes | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 6ff712db7f581c66b50b1b50506ae0a5c3089218 Author: Gabor Kelemen <kelemen.gab...@nisz.hu> AuthorDate: Fri Feb 8 23:40:01 2019 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Feb 11 09:41:35 2019 +0100
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 <vmik...@collabora.com> 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(): _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits