bin/find-unneeded-includes |   32 --------------------------------
 1 file changed, 32 deletions(-)

New commits:
commit 57f62d87f1c00b616c98b70b0e02faaf70cd42d0
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Thu Oct 16 23:02:26 2025 +0200
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Fri Nov 14 10:03:30 2025 +0100

    bin/find-unneeded-includes: stop checking for debug and bits
    
    prefixes of standard library headers
    
    I'm not seeing these errors anymore in fresh v0.24+ IWYU's output
    
    Change-Id: I5e5917641bf9b00309fa9dafebebf70176ece4ff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192751
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes
index 5cd11c696c36..b664121cb53d 100755
--- a/bin/find-unneeded-includes
+++ b/bin/find-unneeded-includes
@@ -39,38 +39,6 @@ def ignoreRemoval(include, toAdd, absFileName, moduleRules, 
noexclude):
         if hdl in toAdd:
             return True
 
-    # Avoid debug STL.
-    debugStl = {
-        "array": ("debug/array", ),
-        "bitset": ("debug/bitset", ),
-        "deque": ("debug/deque", ),
-        "forward_list": ("debug/forward_list", ),
-        "list": ("debug/list", ),
-        "map": ("debug/map.h", "debug/multimap.h"),
-        "set": ("debug/set.h", "debug/multiset.h"),
-        "unordered_map": ("debug/unordered_map", ),
-        "unordered_set": ("debug/unordered_set", ),
-        "vector": ("debug/vector", ),
-    }
-    for k, values in debugStl.items():
-        if include == k:
-            for value in values:
-                if value in toAdd:
-                    return True
-
-    # Avoid proposing to use libstdc++ internal headers.
-    bits = {
-        "exception": "bits/exception.h",
-        "memory": "bits/shared_ptr.h",
-        "functional": "bits/std_function.h",
-        "cmath": "bits/std_abs.h",
-        "ctime": "bits/types/clock_t.h",
-        "cstdint": "bits/stdint-uintn.h",
-    }
-    for k, v in bits.items():
-        if include == k and v in toAdd:
-            return True
-
     # Avoid proposing o3tl fw declaration
     o3tl = {
         "o3tl/typed_flags_set.hxx" : "namespace o3tl { template <typename T> 
struct typed_flags; }",

Reply via email to