New loplugin:dynexcspec: Add @throws documentation, stoc

Change-Id: I8c7d5088aed055c3734165343189233b3124c9be
This commit is contained in:
Stephan Bergmann 2017-01-19 17:50:46 +01:00
parent ebcc8707a0
commit 491f9a6ce4
9 changed files with 34 additions and 5 deletions

View file

@ -97,8 +97,11 @@ class IdlReflectionServiceImpl
inline css::uno::Reference< css::reflection::XIdlClass > constructClass( typelib_TypeDescription * pTypeDescr );
public:
/// @throws 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);
/// @throws css::uno::RuntimeException
uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException);
// ctor/ dtor
@ -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 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);
/// @throws css::uno::RuntimeException
css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescriptionReference * pRef ) throw(css::uno::RuntimeException);
};

View file

@ -406,7 +406,7 @@ uno_Interface * IdlReflectionServiceImpl::mapToUno(
static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
/// @throws css::uno::Exception
Reference< XInterface > SAL_CALL IdlReflectionServiceImpl_create(
const Reference< XComponentContext > & xContext )
throw(css::uno::Exception)

View file

@ -1139,7 +1139,7 @@ Reference<XInterface> InvocationService::createInstanceWithArguments(
}
}
/// @throws RuntimeException
Reference<XInterface> SAL_CALL InvocationService_CreateInstance( const Reference<XComponentContext> & xCtx )
throw( RuntimeException )
{

View file

@ -894,7 +894,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return invadp_getSupportedServiceNames();
}
/// @throws Exception
static Reference< XInterface > SAL_CALL FactoryImpl_create(
const Reference< XComponentContext > & xContext )
throw (Exception)

View file

@ -100,6 +100,7 @@ class JavaComponentLoader : public WeakImplHelper<XImplementationLoader, XServic
public:
/// @throws RuntimeException
explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
throw(RuntimeException);
@ -356,6 +357,7 @@ static Mutex & getInitMutex()
return *pMutex;
}
/// @throws Exception
css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader_CreateInstance(const css::uno::Reference<XComponentContext> & xCtx) throw(Exception)
{
css::uno::Reference<XInterface> xRet;

View file

@ -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
// set to manual (i.e. not to none)
/// @throws css::uno::Exception
void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
const css::uno::Reference<css::uno::XComponentContext> &xCtx ) throw (css::uno::Exception)
@ -346,6 +347,7 @@ void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
xConfRegistry_simple->close();
}
/// @throws css::uno::Exception
void getDefaultLocaleFromConfig(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
@ -449,7 +451,7 @@ void getDefaultLocaleFromConfig(
xConfRegistry_simple->close();
}
/// @throws css::uno::Exception
void getJavaPropsFromSafetySettings(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
@ -536,6 +538,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
pjvm->pushProp("user.timezone=ECT");
}
/// @throws css::uno::Exception
void initVMConfiguration(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,

View file

@ -438,7 +438,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return proxyfac_getSupportedServiceNames();
}
/// @throws Exception
Reference< XInterface > SAL_CALL proxyfac_create(
SAL_UNUSED_PARAMETER Reference< XComponentContext > const & )
throw (Exception)

View file

@ -243,9 +243,11 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr )
class TypeConverter_Impl : public WeakImplHelper< XTypeConverter, XServiceInfo >
{
// ...misc helpers...
/// @throws CannotConvertException
static sal_Int64 toHyper(
const Any& rAny, sal_Int64 min, sal_uInt64 max = SAL_UINT64_MAX )
throw( CannotConvertException );
/// @throws CannotConvertException
static double toDouble( const Any& rAny, double min = -DBL_MAX, double max = DBL_MAX )
throw( CannotConvertException );

View file

@ -37,43 +37,60 @@ public:
~UriReference();
/// @throws css::uno::RuntimeException
OUString getUriReference()
throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool isAbsolute() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
const OUString& getScheme() throw (css::uno::RuntimeException) { return m_scheme;}
/// @throws css::uno::RuntimeException
OUString getSchemeSpecificPart()
throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool isHierarchical() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasAuthority() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getAuthority() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getPath() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasRelativePath() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
sal_Int32 getPathSegmentCount()
throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getPathSegment(sal_Int32 index)
throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasQuery() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getQuery() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
bool hasFragment() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
OUString getFragment() throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void setFragment(OUString const & fragment)
throw (css::uno::RuntimeException);
/// @throws css::uno::RuntimeException
void clearFragment() throw (css::uno::RuntimeException);
osl::Mutex m_mutex;