Kaydet (Commit) 491f9a6c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

New loplugin:dynexcspec: Add @throws documentation, stoc

Change-Id: I8c7d5088aed055c3734165343189233b3124c9be
üst ebcc8707
...@@ -97,8 +97,11 @@ class IdlReflectionServiceImpl ...@@ -97,8 +97,11 @@ class IdlReflectionServiceImpl
inline css::uno::Reference< css::reflection::XIdlClass > constructClass( typelib_TypeDescription * pTypeDescr ); inline css::uno::Reference< css::reflection::XIdlClass > constructClass( typelib_TypeDescription * pTypeDescr );
public: public:
/// @throws css::uno::RuntimeException
const css::uno::Mapping & getCpp2Uno() throw(css::uno::RuntimeException); const css::uno::Mapping & getCpp2Uno() throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
const css::uno::Mapping & getUno2Cpp() throw(css::uno::RuntimeException); const css::uno::Mapping & getUno2Cpp() throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException); uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException);
// ctor/ dtor // ctor/ dtor
...@@ -130,7 +133,9 @@ public: ...@@ -130,7 +133,9 @@ public:
virtual css::uno::Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) override; virtual css::uno::Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(css::uno::RuntimeException, std::exception) override; virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(css::uno::RuntimeException, std::exception) override;
/// @throws css::uno::RuntimeException
css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescription * pTypeDescr ) throw(css::uno::RuntimeException); css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescription * pTypeDescr ) throw(css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescriptionReference * pRef ) throw(css::uno::RuntimeException); css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescriptionReference * pRef ) throw(css::uno::RuntimeException);
}; };
......
...@@ -406,7 +406,7 @@ uno_Interface * IdlReflectionServiceImpl::mapToUno( ...@@ -406,7 +406,7 @@ uno_Interface * IdlReflectionServiceImpl::mapToUno(
static_cast<XWeak *>(static_cast<OWeakObject *>(this)) ); static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
} }
/// @throws css::uno::Exception
Reference< XInterface > SAL_CALL IdlReflectionServiceImpl_create( Reference< XInterface > SAL_CALL IdlReflectionServiceImpl_create(
const Reference< XComponentContext > & xContext ) const Reference< XComponentContext > & xContext )
throw(css::uno::Exception) throw(css::uno::Exception)
......
...@@ -1139,7 +1139,7 @@ Reference<XInterface> InvocationService::createInstanceWithArguments( ...@@ -1139,7 +1139,7 @@ Reference<XInterface> InvocationService::createInstanceWithArguments(
} }
} }
/// @throws RuntimeException
Reference<XInterface> SAL_CALL InvocationService_CreateInstance( const Reference<XComponentContext> & xCtx ) Reference<XInterface> SAL_CALL InvocationService_CreateInstance( const Reference<XComponentContext> & xCtx )
throw( RuntimeException ) throw( RuntimeException )
{ {
......
...@@ -894,7 +894,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames() ...@@ -894,7 +894,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return invadp_getSupportedServiceNames(); return invadp_getSupportedServiceNames();
} }
/// @throws Exception
static Reference< XInterface > SAL_CALL FactoryImpl_create( static Reference< XInterface > SAL_CALL FactoryImpl_create(
const Reference< XComponentContext > & xContext ) const Reference< XComponentContext > & xContext )
throw (Exception) throw (Exception)
......
...@@ -100,6 +100,7 @@ class JavaComponentLoader : public WeakImplHelper<XImplementationLoader, XServic ...@@ -100,6 +100,7 @@ class JavaComponentLoader : public WeakImplHelper<XImplementationLoader, XServic
public: public:
/// @throws RuntimeException
explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx) explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
throw(RuntimeException); throw(RuntimeException);
...@@ -356,6 +357,7 @@ static Mutex & getInitMutex() ...@@ -356,6 +357,7 @@ static Mutex & getInitMutex()
return *pMutex; return *pMutex;
} }
/// @throws Exception
css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader_CreateInstance(const css::uno::Reference<XComponentContext> & xCtx) throw(Exception) css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader_CreateInstance(const css::uno::Reference<XComponentContext> & xCtx) throw(Exception)
{ {
css::uno::Reference<XInterface> xRet; css::uno::Reference<XInterface> xRet;
......
...@@ -265,6 +265,7 @@ bool askForRetry(css::uno::Any const & rException) ...@@ -265,6 +265,7 @@ bool askForRetry(css::uno::Any const & rException)
// Only gets the properties if the "Proxy Server" entry in the option dialog is // Only gets the properties if the "Proxy Server" entry in the option dialog is
// set to manual (i.e. not to none) // set to manual (i.e. not to none)
/// @throws css::uno::Exception
void getINetPropsFromConfig(stoc_javavm::JVM * pjvm, void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr, const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
const css::uno::Reference<css::uno::XComponentContext> &xCtx ) throw (css::uno::Exception) const css::uno::Reference<css::uno::XComponentContext> &xCtx ) throw (css::uno::Exception)
...@@ -346,6 +347,7 @@ void getINetPropsFromConfig(stoc_javavm::JVM * pjvm, ...@@ -346,6 +347,7 @@ void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
xConfRegistry_simple->close(); xConfRegistry_simple->close();
} }
/// @throws css::uno::Exception
void getDefaultLocaleFromConfig( void getDefaultLocaleFromConfig(
stoc_javavm::JVM * pjvm, stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr, const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
...@@ -449,7 +451,7 @@ void getDefaultLocaleFromConfig( ...@@ -449,7 +451,7 @@ void getDefaultLocaleFromConfig(
xConfRegistry_simple->close(); xConfRegistry_simple->close();
} }
/// @throws css::uno::Exception
void getJavaPropsFromSafetySettings( void getJavaPropsFromSafetySettings(
stoc_javavm::JVM * pjvm, stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr, const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
...@@ -536,6 +538,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() { ...@@ -536,6 +538,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
pjvm->pushProp("user.timezone=ECT"); pjvm->pushProp("user.timezone=ECT");
} }
/// @throws css::uno::Exception
void initVMConfiguration( void initVMConfiguration(
stoc_javavm::JVM * pjvm, stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr, const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
......
...@@ -438,7 +438,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames() ...@@ -438,7 +438,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return proxyfac_getSupportedServiceNames(); return proxyfac_getSupportedServiceNames();
} }
/// @throws Exception
Reference< XInterface > SAL_CALL proxyfac_create( Reference< XInterface > SAL_CALL proxyfac_create(
SAL_UNUSED_PARAMETER Reference< XComponentContext > const & ) SAL_UNUSED_PARAMETER Reference< XComponentContext > const & )
throw (Exception) throw (Exception)
......
...@@ -243,9 +243,11 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr ) ...@@ -243,9 +243,11 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr )
class TypeConverter_Impl : public WeakImplHelper< XTypeConverter, XServiceInfo > class TypeConverter_Impl : public WeakImplHelper< XTypeConverter, XServiceInfo >
{ {
// ...misc helpers... // ...misc helpers...
/// @throws CannotConvertException
static sal_Int64 toHyper( static sal_Int64 toHyper(
const Any& rAny, sal_Int64 min, sal_uInt64 max = SAL_UINT64_MAX ) const Any& rAny, sal_Int64 min, sal_uInt64 max = SAL_UINT64_MAX )
throw( CannotConvertException ); throw( CannotConvertException );
/// @throws CannotConvertException
static double toDouble( const Any& rAny, double min = -DBL_MAX, double max = DBL_MAX ) static double toDouble( const Any& rAny, double min = -DBL_MAX, double max = DBL_MAX )
throw( CannotConvertException ); throw( CannotConvertException );
......
...@@ -37,43 +37,60 @@ public: ...@@ -37,43 +37,60 @@ public:
~UriReference(); ~UriReference();
/// @throws css::uno::RuntimeException
OUString getUriReference() OUString getUriReference()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool isAbsolute() throw (css::uno::RuntimeException); bool isAbsolute() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
const OUString& getScheme() throw (css::uno::RuntimeException) { return m_scheme;} const OUString& getScheme() throw (css::uno::RuntimeException) { return m_scheme;}
/// @throws css::uno::RuntimeException
OUString getSchemeSpecificPart() OUString getSchemeSpecificPart()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool isHierarchical() throw (css::uno::RuntimeException); bool isHierarchical() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasAuthority() throw (css::uno::RuntimeException); bool hasAuthority() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getAuthority() throw (css::uno::RuntimeException); OUString getAuthority() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getPath() throw (css::uno::RuntimeException); OUString getPath() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasRelativePath() throw (css::uno::RuntimeException); bool hasRelativePath() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
sal_Int32 getPathSegmentCount() sal_Int32 getPathSegmentCount()
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getPathSegment(sal_Int32 index) OUString getPathSegment(sal_Int32 index)
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasQuery() throw (css::uno::RuntimeException); bool hasQuery() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getQuery() throw (css::uno::RuntimeException); OUString getQuery() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasFragment() throw (css::uno::RuntimeException); bool hasFragment() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getFragment() throw (css::uno::RuntimeException); OUString getFragment() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void setFragment(OUString const & fragment) void setFragment(OUString const & fragment)
throw (css::uno::RuntimeException); throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void clearFragment() throw (css::uno::RuntimeException); void clearFragment() throw (css::uno::RuntimeException);
osl::Mutex m_mutex; osl::Mutex m_mutex;
......
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