bin/find-unneeded-includes |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 05418537bf82929c1e4a8575453b26d7d4c843fe
Author:     Gabor Kelemen <kelem...@ubuntu.com>
AuthorDate: Sun Sep 17 10:35:44 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Sep 19 08:20:10 2023 +0200

    bin/find-unneeded-includes: silence error on include/vcl/toolkit
    
    Change-Id: Ia40717df6d6137ca5a8f6d91dd5b95a1decbaa72
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156991
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes
index cc694fcb41a6..d538a90e32af 100755
--- a/bin/find-unneeded-includes
+++ b/bin/find-unneeded-includes
@@ -261,6 +261,10 @@ def tidy(compileCommands, paths, dontstop, noexclude):
             if isInUnoIncludeFile(path):
                 continue
 
+            # IWYU fails on these with #error: don't use this in new code
+            if path.startswith("include/vcl/toolkit"):
+                continue
+
             moduleName = path.split("/")[0]
 
             rulePath = os.path.join(moduleName, "IwyuFilter_" + moduleName + 
".yaml")

Reply via email to