Kaydet (Commit) 721366eb authored tarafından Michael Stahl's avatar Michael Stahl

cppu: clean up public headers with include-what-you-use

Unfortunately iwyu gets quite confused by the weird cyclic dependencies
between various foo.h/foo.hxx and cppumaker generated headers, so it's
not obvious if any improvement here is realistic...

Change-Id: I0bc66f98b146712e28cabc18d56c11c08418c721
üst 537befbb
......@@ -35,7 +35,6 @@
using namespace ::std;
using namespace ::osl;
using namespace ::com::sun::star::uno;
using namespace ::__cxxabiv1;
......
......@@ -23,6 +23,7 @@
#include <com/sun/star/beans/Optional.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <osl/mutex.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
......
......@@ -23,6 +23,7 @@
#include "osl/mutex.hxx"
#include <osl/diagnose.h>
#include <cppu/Enterable.hxx>
#include "cppu/helper/purpenv/Environment.hxx"
#include "cppu/helper/purpenv/Mapping.hxx"
......
......@@ -24,6 +24,7 @@
#include <osl/diagnose.h>
#include "uno/dispatcher.h"
#include "typelib/typedescription.hxx"
#include <cppu/Enterable.hxx>
#include "cppu/helper/purpenv/Environment.hxx"
#include "cppu/helper/purpenv/Mapping.hxx"
#include "cppu/EnvDcp.hxx"
......
......@@ -22,6 +22,7 @@
#include "osl/thread.h"
#include "osl/thread.hxx"
#include <cppu/Enterable.hxx>
#include "cppu/helper/purpenv/Environment.hxx"
#include "cppu/helper/purpenv/Mapping.hxx"
......
......@@ -22,6 +22,7 @@
#include "osl/diagnose.h"
#include "uno/lbnames.h"
#include <cppu/Enterable.hxx>
#include "typelib/typedescription.h"
#include "osl/interlck.h"
......
......@@ -21,6 +21,7 @@
#define INCLUDED_FRAMEWORK_SOURCE_INC_LOADENV_ACTIONLOCKGUARD_HXX
#include <com/sun/star/document/XActionLockable.hpp>
#include <osl/mutex.hxx>
namespace framework{
......
......@@ -27,8 +27,9 @@
#else // MACOSX
#include <rtl/string.hxx>
#endif // MACOSX
#include <osl/mutex.hxx>
#include <rtl/instance.hxx>
#include "i18nlangtag/languagetag.hxx"
#include "i18nlangtag/mslangid.hxx"
......
......@@ -29,6 +29,7 @@
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include <osl/mutex.hxx>
#include <rtl/instance.hxx>
#include "i18nlangtag/mslangid.hxx"
......
......@@ -15,6 +15,7 @@
#include <rtl/ustrbuf.hxx>
#include <rtl/bootstrap.hxx>
#include <osl/file.hxx>
#include <osl/mutex.hxx>
#include <rtl/instance.hxx>
#include <rtl/locale.h>
#include <boost/unordered_set.hpp>
......
......@@ -21,10 +21,11 @@
#include <uno/any2.h>
#include <typelib/typedescription.h>
#include <com/sun/star/uno/Type.h>
#include <cppu/unotype.hxx>
#include <com/sun/star/uno/TypeClass.hdl>
#include <rtl/alloc.h>
namespace rtl { class OUString; }
namespace com
{
......@@ -35,6 +36,8 @@ namespace star
namespace uno
{
class Type;
/** C++ class representing an IDL any.
This class is used to transport any type defined in IDL. The class inherits from the
binary C representation of uno_Any.
......@@ -258,7 +261,6 @@ template<>
inline Any SAL_CALL makeAny( bool const & value );
class BaseReference;
class Type;
/** Template binary <<= operator to set the value of an any.
......
......@@ -29,8 +29,9 @@
#include <uno/data.h>
#include <uno/sequence2.h>
#include <com/sun/star/uno/Type.hxx>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/genfunc.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <cppu/unotype.hxx>
namespace com
......
......@@ -22,7 +22,7 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/genfunc.hxx>
#include <com/sun/star/uno/Any.hxx>
namespace com
{
......
......@@ -21,7 +21,6 @@
#include <typelib/typedescription.h>
#include <com/sun/star/uno/TypeClass.hdl>
#include <cppu/macros.hxx>
#include <rtl/ustring.hxx>
#include <rtl/alloc.h>
......
......@@ -19,7 +19,6 @@
#ifndef INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
#define INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
#include <osl/mutex.hxx>
#include <com/sun/star/uno/Type.h>
#include <cppu/unotype.hxx>
......
......@@ -21,6 +21,7 @@
#include <com/sun/star/uno/genfunc.h>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/XInterface.hpp>
namespace com
......
......@@ -21,7 +21,6 @@
#define INCLUDED_CPPU_ENVGUARDS_HXX
#include <uno/environment.hxx>
#include <uno/mapping.hxx>
namespace cppu
......
......@@ -22,8 +22,8 @@
#include <cppu/cppudllapi.h>
#include <uno/environment.h>
#include <cppu/Enterable.hxx>
namespace cppu { class Enterable; }
namespace cppu { namespace helper { namespace purpenv {
......
......@@ -20,9 +20,9 @@
#ifndef INCLUDED_CPPU_HELPER_PURPENV_MAPPING_HXX
#define INCLUDED_CPPU_HELPER_PURPENV_MAPPING_HXX
#include <com/sun/star/uno/Any.h>
#include <cppu/cppudllapi.h>
#include <typelib/typedescription.h>
#include <uno/any2.h>
#include <uno/environment.h>
#include <uno/mapping.h>
......
......@@ -21,12 +21,12 @@
#define INCLUDED_CPPU_UNOTYPE_HXX
#include <sal/config.h>
#include <com/sun/star/uno/Type.h>
#include <sal/types.h>
#include <typelib/typeclass.h>
#include <typelib/typedescription.h>
namespace com { namespace sun { namespace star { namespace uno {
class Type;
class Any;
class Exception;
template< typename > class Reference;
......
......@@ -20,7 +20,6 @@
#define INCLUDED_UNO_DISPATCHER_H
#include <sal/types.h>
#include <rtl/ustring.h>
#include <uno/any2.h>
#ifdef __cplusplus
......
......@@ -19,7 +19,7 @@
#ifndef INCLUDED_UNO_MAPPING_HXX
#define INCLUDED_UNO_MAPPING_HXX
#include <cppu/macros.hxx>
#include <uno/lbnames.h>
#include <rtl/alloc.h>
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
......
......@@ -21,7 +21,7 @@
#define INCLUDED_UNO_THREADPOOL_H
#include <cppu/cppudllapi.h>
#include <rtl/byteseq.h>
#include <sal/types.h>
#ifdef __cplusplus
extern "C" {
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/connection/ConnectionSetupException.hpp>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <cppuhelper/implbase1.hxx>
using namespace ::osl;
......
......@@ -22,6 +22,7 @@
#include <boost/unordered_set.hpp>
#include <algorithm>
#include <osl/mutex.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/connection/XConnectionBroadcaster.hpp>
#include <com/sun/star/connection/ConnectionSetupException.hpp>
......
......@@ -22,6 +22,7 @@
#include <osl/pipe.hxx>
#include <osl/socket.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/connection/XConnection.hpp>
......
......@@ -23,6 +23,8 @@
#include <com/sun/star/drawing/framework/XConfiguration.hpp>
#include <com/sun/star/drawing/framework/XResource.hpp>
#include <com/sun/star/drawing/framework/XResourceFactory.hpp>
#include <osl/mutex.hxx>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
#include <map>
......
......@@ -20,6 +20,7 @@
#include <com/sun/star/uno/Exception.hpp>
#include <osl/mutex.hxx>
#include <comphelper/flagguard.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
......
......@@ -26,6 +26,7 @@
#include <toolkit/helper/accessiblefactory.hxx>
#include <osl/module.h>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <tools/solar.h>
#include "helper/accessibilityclient.hxx"
......
......@@ -27,6 +27,7 @@
************************************************************************/
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include "NeonHeadRequest.hxx"
......
......@@ -28,6 +28,7 @@
#include "osl/diagnose.h"
#include <osl/mutex.hxx>
#include "rtl/strbuf.hxx"
#include "NeonTypes.hxx"
#include "DAVException.hxx"
......
......@@ -26,6 +26,8 @@
#include "../dom/document.hxx"
#include <osl/mutex.hxx>
using namespace css::uno;
using namespace css::xml::dom;
using namespace css::xml::dom::events;
......
......@@ -33,6 +33,8 @@
#include <com/sun/star/xml/dom/events/PhaseType.hpp>
#include <com/sun/star/xml/dom/events/XEvent.hpp>
namespace osl { class Mutex; }
namespace DOM {
class CDocument;
......
......@@ -21,6 +21,7 @@
#include "vcl_date_handler.hxx"
#include "vcl_time_handler.hxx"
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
namespace xmloff
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment