sal/IwyuFilter_sal.yaml              |    6 ++++++
 sal/osl/all/debugbase.cxx            |    1 -
 sal/osl/all/loadmodulerelative.cxx   |    3 ---
 sal/osl/all/log.cxx                  |    2 --
 sal/osl/all/signalshared.cxx         |    1 -
 salhelper/qa/test_api.cxx            |    3 ---
 sax/source/fastparser/fastparser.cxx |    1 -
 sax/source/tools/fastattribs.cxx     |    1 -
 sax/source/tools/fastserializer.cxx  |    1 -
 9 files changed, 6 insertions(+), 13 deletions(-)

New commits:
commit 025f540dba1c5b046b4fdbd9418dcaaa900e006d
Author:     Venetia Furtado <venetiaros...@gmail.com>
AuthorDate: Fri Jul 28 19:46:39 2023 -0600
Commit:     Gabor Kelemen <kelem...@ubuntu.com>
CommitDate: Tue Aug 1 21:13:47 2023 +0200

    tdf#146619 Remove unused #includes from C/C++ files
    
    Change-Id: Ia8b406b6a59086160a5167480c6d3bde6574ffbe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155029
    Tested-by: Jenkins
    Tested-by: Gabor Kelemen <kelem...@ubuntu.com>
    Reviewed-by: Gabor Kelemen <kelem...@ubuntu.com>

diff --git a/sal/IwyuFilter_sal.yaml b/sal/IwyuFilter_sal.yaml
new file mode 100644
index 000000000000..4337fa73b4c3
--- /dev/null
+++ b/sal/IwyuFilter_sal.yaml
@@ -0,0 +1,6 @@
+---
+assumeFilename: sal/osl/all/log.cxx
+excludelist:
+    sal/osl/all/log.cxx:
+    #sal_use_syslog required from this file
+    - salusesyslog.hxx
\ No newline at end of file
diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx
index b4b598589a00..51656e7d37d2 100644
--- a/sal/osl/all/debugbase.cxx
+++ b/sal/osl/all/debugbase.cxx
@@ -17,7 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <rtl/strbuf.hxx>
 #include <rtl/string.hxx>
 #include <rtl/ustring.hxx>
 #include <osl/process.h>
diff --git a/sal/osl/all/loadmodulerelative.cxx 
b/sal/osl/all/loadmodulerelative.cxx
index 242bb6210a76..f7a6938ed130 100644
--- a/sal/osl/all/loadmodulerelative.cxx
+++ b/sal/osl/all/loadmodulerelative.cxx
@@ -18,9 +18,6 @@
  */
 
 #include <sal/config.h>
-
-#include <cstddef>
-
 #include <sal/log.hxx>
 #include <osl/module.h>
 #include <osl/module.hxx>
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index e9895e14cb7b..15cb269a1976 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -11,11 +11,9 @@
 
 #include <cassert>
 #include <cstdarg>
-#include <cstddef>
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
-#include <sstream>
 
 #include <fstream>
 
diff --git a/sal/osl/all/signalshared.cxx b/sal/osl/all/signalshared.cxx
index 530413f2604c..9ed08626f74f 100644
--- a/sal/osl/all/signalshared.cxx
+++ b/sal/osl/all/signalshared.cxx
@@ -23,7 +23,6 @@
 
 #include <signalshared.hxx>
 
-#include <osl/diagnose.h>
 #include <mutex>
 
 namespace
diff --git a/salhelper/qa/test_api.cxx b/salhelper/qa/test_api.cxx
index 2d4b8be0e2a8..54353e228479 100644
--- a/salhelper/qa/test_api.cxx
+++ b/salhelper/qa/test_api.cxx
@@ -18,9 +18,6 @@
  */
 
 #include <sal/config.h>
-
-#include <typeinfo>
-
 #include <osl/mutex.hxx>
 #include <salhelper/condition.hxx>
 #include <salhelper/dynload.hxx>
diff --git a/sax/source/fastparser/fastparser.cxx 
b/sax/source/fastparser/fastparser.cxx
index 344dda9cd63e..fd1b147f044e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -34,7 +34,6 @@
 #include <cppuhelper/exc_hlp.hxx>
 #include <osl/conditn.hxx>
 #include <rtl/ref.hxx>
-#include <rtl/ustrbuf.hxx>
 #include <sal/log.hxx>
 #include <salhelper/thread.hxx>
 #include <comphelper/diagnose_ex.hxx>
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 917e9c8ab048..45e2e9c5ebba 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -20,7 +20,6 @@
 #include <algorithm>
 
 #include <com/sun/star/xml/sax/SAXException.hpp>
-#include <rtl/math.h>
 #include <sax/fastattribs.hxx>
 #include <utility>
 
diff --git a/sax/source/tools/fastserializer.cxx 
b/sax/source/tools/fastserializer.cxx
index 9461e784ca4a..50408e4dc284 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -23,7 +23,6 @@
 #include <rtl/math.h>
 #include <sal/log.hxx>
 #include <comphelper/processfactory.hxx>
-#include <comphelper/sequence.hxx>
 
 #include <cassert>
 #include <optional>

Reply via email to