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

New commits:
commit 994e4d464d3acc892a48bfc40c0ad694f7046be3
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Fri Oct 3 16:02:01 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Tue Oct 14 11:03:22 2025 +0200

    bin/find-unneeded-includes: better warning message
    
    about obsolete exclusions in --sanitycheck mode
    
    Change-Id: I46cf965bae1f6d5b7d8ca0c5c77c1f5ab2dbe3e0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191828
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes
index 62786fb4fa87..d1e7c8ad0d8d 100755
--- a/bin/find-unneeded-includes
+++ b/bin/find-unneeded-includes
@@ -671,11 +671,11 @@ def main(argv):
                                 classname=c.group(1)
                                 p = subprocess.run(["git", "grep", "-q", "-e", 
"#include <"+exclusion, "-e", exclusion, "-e", classname, file])
                                 if p.returncode == 1 :
-                                    print("WARNING:", exclusion, "is not 
present anymore in", file)
+                                    print("WARNING:", file, ":", exclusion, 
"line is not present anymore, remove it from:", rulePath)
                             else:
                                 p = subprocess.run(["git", "grep", "-q", "-e", 
"#include <"+exclusion, "-e", exclusion, file])
                                 if p.returncode == 1 :
-                                    print("WARNING:", exclusion, "is not 
present anymore in", file)
+                                    print("WARNING:", file, ":", exclusion, 
"line is not present anymore, remove it from:", rulePath)
                     except TypeError:
                         print("WARNING: no exclusions are defined for:", file)
         sys.exit(0)

Reply via email to