From 919f639c721256e852f20c0e84b3942860e69f32 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 12 Feb 2020 20:43:31 +0100 Subject: find-unneeded-includes: silence broken o3tl::optional -> std::optional proposal This is just a workaround, see the upstream bugreport for the details. Change-Id: I2334fb3ad86db7f43bd49c694eea3c240316bfa0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88566 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- bin/find-unneeded-includes | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index 8ba5a7d354a6..a6ec228fce58 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -64,7 +64,10 @@ def ignoreRemoval(include, toAdd, absFileName, moduleRules): "functional": "bits/std_function.h", "cmath": "bits/std_abs.h", "ctime": "bits/types/clock_t.h", - "cstdint": "bits/stdint-uintn.h" + "cstdint": "bits/stdint-uintn.h", + # Keep using the o3tl wrapper for . + # Works around . + "o3tl/optional.hxx": "optional", } for k, v in bits.items(): if include == k and v in toAdd: -- cgit