New loplugin:dynexcspec: Add @throws documentation, io

Change-Id: I2d8b69454217bbbc9542cced8ce85269e3872662
This commit is contained in:
Stephan Bergmann
2017-01-19 17:55:54 +01:00
parent 6e3cbd285e
commit f725fadea6
6 changed files with 23 additions and 1 deletions

View File

@@ -71,9 +71,13 @@ class OTextInputStream : public WeakImplHelper< XTextInputStream2, XServiceInfo
bool mbReachedEOF;
void implResizeBuffer();
/// @throws IOException
/// @throws RuntimeException
OUString implReadString( const Sequence< sal_Unicode >& Delimiters,
bool bRemoveDelimiter, bool bFindLineEnd )
throw(IOException, RuntimeException);
/// @throws IOException
/// @throws RuntimeException
sal_Int32 implReadNext() throw(IOException, RuntimeException);
public:

View File

@@ -61,6 +61,7 @@ class OTextOutputStream : public WeakImplHelper< XTextOutputStream2, XServiceInf
rtl_UnicodeToTextContext mContextUnicode2Text;
Sequence<sal_Int8> implConvert( const OUString& rSource );
/// @throws IOException
void checkOutputStream() throw(IOException);
public:

View File

@@ -100,6 +100,7 @@ namespace io_acceptor
struct BeingInAccept
{
/// @throws AlreadyAcceptingException
BeingInAccept( bool *pFlag,const OUString & sConnectionDescription ) throw( AlreadyAcceptingException)
: m_pFlag( pFlag )
{

View File

@@ -56,34 +56,42 @@ namespace io_TextOutputStream {
}
namespace io_stm {
/// @throws Exception
Reference< XInterface > SAL_CALL OPipeImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString OPipeImpl_getImplementationName();
Sequence<OUString> OPipeImpl_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL ODataInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString ODataInputStream_getImplementationName();
Sequence<OUString> ODataInputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL ODataOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString ODataOutputStream_getImplementationName();
Sequence<OUString> ODataOutputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL OMarkableOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString OMarkableOutputStream_getImplementationName();
Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL OMarkableInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString OMarkableInputStream_getImplementationName() ;
Sequence<OUString> OMarkableInputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL OObjectOutputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
OUString OObjectOutputStream_getImplementationName();
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL OObjectInputStream_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw(Exception);
OUString OObjectInputStream_getImplementationName() ;
Sequence<OUString> OObjectInputStream_getSupportedServiceNames();
/// @throws Exception
Reference< XInterface > SAL_CALL OPumpImpl_CreateInstance( const Reference< XComponentContext > & rSMgr ) throw (Exception);
OUString OPumpImpl_getImplementationName();
Sequence<OUString> OPumpImpl_getSupportedServiceNames();

View File

@@ -130,6 +130,8 @@ public: // XServiceInfo
private:
// helper methods
/// @throws NotConnectedException
/// @throws BufferSizeExceededException
void checkMarksAndFlush() throw( NotConnectedException, BufferSizeExceededException);
Reference< XConnectable > m_succ;

View File

@@ -40,15 +40,18 @@ public:
* overwrites data at given position. Size is automatically extended, when
* data is written beyond end.
***/
/// @throws css::io::BufferSizeExceededException
void writeAt( sal_Int32 nPos, const Sequence<sal_Int8> &)
throw(css::io::BufferSizeExceededException);
/// @throws css::io::BufferSizeExceededException
void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const
throw(css::io::BufferSizeExceededException);
sal_Int32 getSize() const throw();
/// @throws css::io::BufferSizeExceededException
void forgetFromStart(sal_Int32 nBytesToForget) throw(css::io::BufferSizeExceededException);
private:
/// @throws css::io::BufferSizeExceededException
void resizeBuffer(sal_Int32 nMinSize) throw(css::io::BufferSizeExceededException);
inline void checkInvariants() {
assert( m_nBufferLen >= 0 );
@@ -70,10 +73,13 @@ class MemFIFO :
private MemRingBuffer
{
public:
/// @throws css::io::BufferSizeExceededException
void write( const Sequence<sal_Int8> &)
throw( css::io::BufferSizeExceededException );
/// @throws css::io::BufferSizeExceededException
void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
throw( css::io::BufferSizeExceededException );
/// @throws css::io::BufferSizeExceededException
void skip( sal_Int32 nBytesToSkip )
throw( css::io::BufferSizeExceededException );
sal_Int32 getSize() const throw()