From db17b611655873232153cae379035a12cfebb428 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 23 Jan 2020 23:21:44 +0100 Subject: [PATCH] tdf#42949 Fix IWYU warnings in unotest/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ia33a10041f2411361cc849241d51b614754cda00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87310 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- unotest/IwyuFilter_unotest.yaml | 2 ++ unotest/source/cpp/bootstrapfixturebase.cxx | 1 - unotest/source/cpp/getargument.cxx | 1 - unotest/source/cpp/getargument.hxx | 2 ++ unotest/source/cpp/gettestargument.cxx | 1 - unotest/source/cpp/macros_test.cxx | 2 -- unotest/source/cpp/officeconnection.cxx | 1 - unotest/source/cpp/toabsolutefileurl.cxx | 1 - .../unobootstrapprotector/unobootstrapprotector.cxx | 13 +------------ .../unoexceptionprotector/unoexceptionprotector.cxx | 4 +--- 10 files changed, 6 insertions(+), 22 deletions(-) create mode 100644 unotest/IwyuFilter_unotest.yaml diff --git a/unotest/IwyuFilter_unotest.yaml b/unotest/IwyuFilter_unotest.yaml new file mode 100644 index 000000000000..c4f80bf0e645 --- /dev/null +++ b/unotest/IwyuFilter_unotest.yaml @@ -0,0 +1,2 @@ +--- +assumeFilename: unotest/source/cpp/officeconnection.cxx diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 9f0f0766807a..4b93b1d6de94 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -10,7 +10,6 @@ #include #include -#include #include #include diff --git a/unotest/source/cpp/getargument.cxx b/unotest/source/cpp/getargument.cxx index 61277f8a849a..007cc775b7d7 100644 --- a/unotest/source/cpp/getargument.cxx +++ b/unotest/source/cpp/getargument.cxx @@ -21,7 +21,6 @@ #include #include -#include #include #include "getargument.hxx" diff --git a/unotest/source/cpp/getargument.hxx b/unotest/source/cpp/getargument.hxx index f0a1954229b7..97f2b89f32d1 100644 --- a/unotest/source/cpp/getargument.hxx +++ b/unotest/source/cpp/getargument.hxx @@ -22,6 +22,8 @@ #include +#include + namespace test { namespace detail { diff --git a/unotest/source/cpp/gettestargument.cxx b/unotest/source/cpp/gettestargument.cxx index 39e4fe23f7dc..93ba6dbe639d 100644 --- a/unotest/source/cpp/gettestargument.cxx +++ b/unotest/source/cpp/gettestargument.cxx @@ -19,7 +19,6 @@ #include -#include #include #include diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index 5b5804c309ab..20c56950fcaf 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -11,14 +11,12 @@ #include -#include #include #include #include #include #include -#include #include #include diff --git a/unotest/source/cpp/officeconnection.cxx b/unotest/source/cpp/officeconnection.cxx index c85ad7b72e5f..f89465b2c492 100644 --- a/unotest/source/cpp/officeconnection.cxx +++ b/unotest/source/cpp/officeconnection.cxx @@ -30,7 +30,6 @@ #include #include #include -#include #include #include diff --git a/unotest/source/cpp/toabsolutefileurl.cxx b/unotest/source/cpp/toabsolutefileurl.cxx index 27091a986d13..ea8b6f66c22b 100644 --- a/unotest/source/cpp/toabsolutefileurl.cxx +++ b/unotest/source/cpp/toabsolutefileurl.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include #include diff --git a/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx b/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx index 56d6da9f3e4e..5ad175b9d0ef 100644 --- a/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx +++ b/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx @@ -17,29 +17,18 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include -#include -#include - #include #include #include -#include #include #include #include -#include -#include -#include -#include -#include -#include #include -#include +#include namespace { diff --git a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx index 2230f8465671..36da0debf56d 100644 --- a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx +++ b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx @@ -18,7 +18,6 @@ */ #include -#include #include #include @@ -26,11 +25,10 @@ #include #include #include -#include #include #include -#include +#include namespace {