7e403195e5
...with a boost::optional fallback for Xcode < 10 (as std::optional is only
available starting with Xcode 10 according to
<https://en.cppreference.com/w/cpp/compiler_support>, and our baseline for iOS
and macOS is still Xcode 9.3 according to README.md). And mechanically rewrite
all code to use o3tl::optional instead of boost::optional.
One immediate benefit is that disabling -Wmaybe-uninitialized for GCC as per
fed7c3deb3
"Slience bogus
-Werror=maybe-uninitialized" should no longer be necessary (and whose check
happened to no longer trigger for GCC 10 trunk, even though that compiler would
still emit bogus -Wmaybe-uninitialized for uses of boost::optional under
--enable-optimized, which made me ponder whether this switch from
boost::optional to std::optional would be a useful thing to do; I keep that
configure.ac check for now, though, and will only remove it in a follow up
commit).
Another longer-term benefit is that the code is now already in good shape for an
eventual switch to std::optional (a switch we would have done anyway once we no
longer need to support Xcode < 10).
Only desktop/qa/desktop_lib/test_desktop_lib.cxx heavily uses
boost::property_tree::ptree::get_child_optional returning boost::optional, so
let it keep using boost::optional for now.
After a number of preceding commits have paved the way for this change, this
commit is completely mechanical, done with
> git ls-files -z | grep -vz -e '^bin/find-unneeded-includes$' -e '^configure.ac$' -e '^desktop/qa/desktop_lib/test_desktop_lib.cxx$' -e '^dictionaries$' -e '^external/' -e '^helpcontent2$' -e '^include/IwyuFilter_include.yaml$' -e '^sc/IwyuFilter_sc.yaml$' -e '^solenv/gdb/boost/optional.py$' -e '^solenv/vs/LibreOffice.natvis$' -e '^translations$' -e '\.svg$' | xargs -0 sed -i -E -e 's|\<boost(/optional)?/optional\.hpp\>|o3tl/optional.hxx|g' -e 's/\<boost(\s*)::(\s*)(make_)?optional\>/o3tl\1::\2\3optional/g' -e 's/\<boost(\s*)::(\s*)none\>/o3tl\1::\2nullopt/g'
(before committing include/o3tl/optional.hxx, and relying on some GNU features).
It excludes some files where mention of boost::optional et al should apparently
not be changed (and the sub-repo directory stubs). It turned out that all uses
of boost::none across the code base were in combination with boost::optional, so
had all to be rewritten as o3tl::nullopt.
Change-Id: Ibfd9f4b3d5a8aee6e6eed310b988c4e5ffd8b11b
Reviewed-on: https://gerrit.libreoffice.org/84128
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
220 lines
7.4 KiB
C++
220 lines
7.4 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
/*
|
|
This file has been autogenerated by update_pch.sh. It is possible to edit it
|
|
manually (such as when an include file has been moved/renamed/removed). All such
|
|
manual changes will be rewritten by the next run of update_pch.sh (which presumably
|
|
also fixes all possible problems, so it's usually better to use it).
|
|
|
|
Generated on 2019-10-17 15:13:57 using:
|
|
./bin/update_pch comphelper comphelper --cutoff=4 --exclude:system --include:module --include:local
|
|
|
|
If after updating build fails, use the following command to locate conflicting headers:
|
|
./bin/update_pch_bisect ./comphelper/inc/pch/precompiled_comphelper.hxx "make comphelper.build" --find-conflicts
|
|
*/
|
|
|
|
#if PCH_LEVEL >= 1
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <cstddef>
|
|
#include <cstring>
|
|
#include <deque>
|
|
#include <float.h>
|
|
#include <functional>
|
|
#include <initializer_list>
|
|
#include <iomanip>
|
|
#include <limits.h>
|
|
#include <limits>
|
|
#include <map>
|
|
#include <math.h>
|
|
#include <memory>
|
|
#include <new>
|
|
#include <ostream>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <type_traits>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <o3tl/optional.hxx>
|
|
#endif // PCH_LEVEL >= 1
|
|
#if PCH_LEVEL >= 2
|
|
#include <osl/conditn.hxx>
|
|
#include <osl/diagnose.h>
|
|
#include <osl/endian.h>
|
|
#include <osl/file.hxx>
|
|
#include <osl/interlck.h>
|
|
#include <osl/mutex.hxx>
|
|
#include <osl/thread.h>
|
|
#include <osl/time.h>
|
|
#include <rtl/alloc.h>
|
|
#include <rtl/bootstrap.hxx>
|
|
#include <rtl/character.hxx>
|
|
#include <rtl/crc.h>
|
|
#include <rtl/digest.h>
|
|
#include <rtl/instance.hxx>
|
|
#include <rtl/locale.h>
|
|
#include <rtl/math.h>
|
|
#include <rtl/math.hxx>
|
|
#include <rtl/random.h>
|
|
#include <rtl/ref.hxx>
|
|
#include <rtl/strbuf.h>
|
|
#include <rtl/strbuf.hxx>
|
|
#include <rtl/string.h>
|
|
#include <rtl/string.hxx>
|
|
#include <rtl/stringconcat.hxx>
|
|
#include <rtl/stringutils.hxx>
|
|
#include <rtl/textcvt.h>
|
|
#include <rtl/textenc.h>
|
|
#include <rtl/unload.h>
|
|
#include <rtl/ustrbuf.hxx>
|
|
#include <rtl/ustring.h>
|
|
#include <rtl/ustring.hxx>
|
|
#include <rtl/uuid.h>
|
|
#include <sal/config.h>
|
|
#include <sal/log.hxx>
|
|
#include <sal/macros.h>
|
|
#include <sal/mathconf.h>
|
|
#include <sal/saldllapi.h>
|
|
#include <sal/types.h>
|
|
#include <sal/typesizes.h>
|
|
#include <vcl/GraphicExternalLink.hxx>
|
|
#include <vcl/Scanline.hxx>
|
|
#include <vcl/alpha.hxx>
|
|
#include <vcl/animate/Animation.hxx>
|
|
#include <vcl/animate/AnimationBitmap.hxx>
|
|
#include <vcl/bitmap.hxx>
|
|
#include <vcl/bitmapex.hxx>
|
|
#include <vcl/checksum.hxx>
|
|
#include <vcl/dllapi.h>
|
|
#include <vcl/gfxlink.hxx>
|
|
#include <vcl/mapmod.hxx>
|
|
#include <vcl/region.hxx>
|
|
#include <vcl/scopedbitmapaccess.hxx>
|
|
#include <vcl/task.hxx>
|
|
#include <vcl/timer.hxx>
|
|
#include <vcl/vectorgraphicdata.hxx>
|
|
#endif // PCH_LEVEL >= 2
|
|
#if PCH_LEVEL >= 3
|
|
#include <basegfx/basegfxdllapi.h>
|
|
#include <basegfx/color/bcolor.hxx>
|
|
#include <basegfx/numeric/ftools.hxx>
|
|
#include <basegfx/point/b2dpoint.hxx>
|
|
#include <basegfx/point/b2ipoint.hxx>
|
|
#include <basegfx/polygon/b2dpolygon.hxx>
|
|
#include <basegfx/polygon/b2dpolypolygon.hxx>
|
|
#include <basegfx/range/b2drange.hxx>
|
|
#include <basegfx/range/basicrange.hxx>
|
|
#include <basegfx/tuple/b2dtuple.hxx>
|
|
#include <basegfx/tuple/b2ituple.hxx>
|
|
#include <basegfx/tuple/b3dtuple.hxx>
|
|
#include <basegfx/vector/b2dsize.hxx>
|
|
#include <basegfx/vector/b2dvector.hxx>
|
|
#include <basegfx/vector/b2enums.hxx>
|
|
#include <basegfx/vector/b2ivector.hxx>
|
|
#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
|
|
#include <com/sun/star/accessibility/XAccessibleContext2.hpp>
|
|
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
|
|
#include <com/sun/star/accessibility/XAccessibleExtendedComponent.hpp>
|
|
#include <com/sun/star/beans/IllegalTypeException.hpp>
|
|
#include <com/sun/star/beans/NamedValue.hpp>
|
|
#include <com/sun/star/beans/Property.hpp>
|
|
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
|
#include <com/sun/star/beans/PropertyValue.hpp>
|
|
#include <com/sun/star/beans/XFastPropertySet.hpp>
|
|
#include <com/sun/star/beans/XMultiPropertySet.hpp>
|
|
#include <com/sun/star/beans/XPropertySet.hpp>
|
|
#include <com/sun/star/beans/XPropertySetInfo.hpp>
|
|
#include <com/sun/star/beans/XPropertySetOption.hpp>
|
|
#include <com/sun/star/beans/XPropertyState.hpp>
|
|
#include <com/sun/star/container/XNameAccess.hpp>
|
|
#include <com/sun/star/container/XNameContainer.hpp>
|
|
#include <com/sun/star/io/IOException.hpp>
|
|
#include <com/sun/star/io/NotConnectedException.hpp>
|
|
#include <com/sun/star/lang/DisposedException.hpp>
|
|
#include <com/sun/star/lang/EventObject.hpp>
|
|
#include <com/sun/star/lang/IllegalArgumentException.hpp>
|
|
#include <com/sun/star/lang/XComponent.hpp>
|
|
#include <com/sun/star/lang/XEventListener.hpp>
|
|
#include <com/sun/star/lang/XInitialization.hpp>
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
#include <com/sun/star/lang/XTypeProvider.hpp>
|
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
|
#include <com/sun/star/task/XInteractionRequest.hpp>
|
|
#include <com/sun/star/uno/Any.h>
|
|
#include <com/sun/star/uno/Any.hxx>
|
|
#include <com/sun/star/uno/Reference.h>
|
|
#include <com/sun/star/uno/Reference.hxx>
|
|
#include <com/sun/star/uno/RuntimeException.hpp>
|
|
#include <com/sun/star/uno/Sequence.h>
|
|
#include <com/sun/star/uno/Sequence.hxx>
|
|
#include <com/sun/star/uno/Type.h>
|
|
#include <com/sun/star/uno/Type.hxx>
|
|
#include <com/sun/star/uno/TypeClass.hdl>
|
|
#include <com/sun/star/uno/TypeClass.hpp>
|
|
#include <com/sun/star/uno/XAggregation.hpp>
|
|
#include <com/sun/star/uno/XInterface.hpp>
|
|
#include <com/sun/star/uno/XWeak.hpp>
|
|
#include <com/sun/star/uno/genfunc.h>
|
|
#include <com/sun/star/uno/genfunc.hxx>
|
|
#include <cppu/cppudllapi.h>
|
|
#include <cppu/unotype.hxx>
|
|
#include <cppuhelper/basemutex.hxx>
|
|
#include <cppuhelper/compbase2.hxx>
|
|
#include <cppuhelper/compbase_ex.hxx>
|
|
#include <cppuhelper/cppuhelperdllapi.h>
|
|
#include <cppuhelper/exc_hlp.hxx>
|
|
#include <cppuhelper/implbase.hxx>
|
|
#include <cppuhelper/implbase1.hxx>
|
|
#include <cppuhelper/implbase2.hxx>
|
|
#include <cppuhelper/implbase_ex.hxx>
|
|
#include <cppuhelper/implbase_ex_post.hxx>
|
|
#include <cppuhelper/implbase_ex_pre.hxx>
|
|
#include <cppuhelper/interfacecontainer.h>
|
|
#include <cppuhelper/propshlp.hxx>
|
|
#include <cppuhelper/supportsservice.hxx>
|
|
#include <cppuhelper/weak.hxx>
|
|
#include <cppuhelper/weakagg.hxx>
|
|
#include <cppuhelper/weakref.hxx>
|
|
#include <o3tl/cow_wrapper.hxx>
|
|
#include <o3tl/typed_flags_set.hxx>
|
|
#include <o3tl/underlyingenumvalue.hxx>
|
|
#include <salhelper/salhelperdllapi.h>
|
|
#include <salhelper/simplereferenceobject.hxx>
|
|
#include <salhelper/thread.hxx>
|
|
#include <tools/color.hxx>
|
|
#include <tools/gen.hxx>
|
|
#include <tools/link.hxx>
|
|
#include <tools/mapunit.hxx>
|
|
#include <tools/solar.h>
|
|
#include <tools/toolsdllapi.h>
|
|
#include <typelib/typeclass.h>
|
|
#include <typelib/typedescription.h>
|
|
#include <typelib/uik.h>
|
|
#include <ucbhelper/ucbhelperdllapi.h>
|
|
#include <uno/any2.h>
|
|
#include <uno/data.h>
|
|
#include <uno/sequence2.h>
|
|
#endif // PCH_LEVEL >= 3
|
|
#if PCH_LEVEL >= 4
|
|
#include <comphelper/accessiblecontexthelper.hxx>
|
|
#include <comphelper/comphelperdllapi.h>
|
|
#include <comphelper/interfacecontainer2.hxx>
|
|
#include <comphelper/processfactory.hxx>
|
|
#include <comphelper/propertycontainerhelper.hxx>
|
|
#include <comphelper/seqstream.hxx>
|
|
#include <comphelper/sequence.hxx>
|
|
#include <comphelper/solarmutex.hxx>
|
|
#include <comphelper/uno3.hxx>
|
|
#endif // PCH_LEVEL >= 4
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|