Conversation
f2c5384 to
bc4b50a
Compare
aleks-f
left a comment
There was a problem hiding this comment.
I am not sure if @deprecated is needed/used by PocoDoc, @obiltschnig would know
bc4b50a to
3999dcd
Compare
f63afd3 to
da8037a
Compare
da8037a to
fe5f2b5
Compare
| //class [[deprecated]] ECKey; | ||
| //class [[deprecated]] RSAKey; |
Check notice
Code scanning / CodeQL
Commented-out code
| class X509Certificate; | ||
| class PKCS12Container; | ||
|
|
||
| //class [[deprecated]] RSAKey; |
Check notice
Code scanning / CodeQL
Commented-out code
| class X509Certificate; | ||
| class PKCS12Container; | ||
|
|
||
| //class [[deprecated]] ECKey; |
Check notice
Code scanning / CodeQL
Commented-out code
| }; | ||
|
|
||
| //@ deprecated | ||
| //[[deprecated]] RSADigestEngine(const RSAKey& key, DigestType digestType = DIGEST_SHA1); |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] InsertRequest; |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] RequestMessage; |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] ResponseMessage; |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] QueryRequest; |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] Cursor; |
Check notice
Code scanning / CodeQL
Commented-out code
| namespace Poco { | ||
| namespace MongoDB { | ||
|
|
||
| //class [[deprecated]] GetMoreRequest; |
Check notice
Code scanning / CodeQL
Commented-out code
|
Functionality that was marked as deprecated with comments is now marked as such with C++ attribute with a few exceptions:
Usage of deprecated functions and classes in Poco code is replaced with non-deprecated variants. Unit tests for deprecated functionality are disabled by default and can be enabled with Some C++ code modernisation was done in the code while resolving deprecations. |
aleks-f
left a comment
There was a problem hiding this comment.
Overall looks good, than you. I'm just thinking it would be good to have a single place to disarm warnings somehow.
| { | ||
| try | ||
| { | ||
| sleepTime = 100; |
Do you mean deprecation warnings that will be seen by the users of Poco? Do we want to disarm them? |
I foresee some annoyance if we swamp the build with deprecation warnings. In any case, I think there should be an easy way to disable them. |
105597b to
ad8c34f
Compare
Introduced a macro IMO the branch is ready to be merged to main. @obiltschnig, @aleks-f, any objections? |
…lve internal usage of deprecated functions (#4551) * enh(poco): Replace deprecated comments with C++ deprecated attribute. * enh(Poco): Replace some deprecated functionality in Poco sources. (#4426) * enh(Poco): Replace more deprecated functionality in Poco sources. (#4426) * fix(CMake): Variable BUILD_SHARED_LIBS must be defined properly to create valid binaries. * enh: Code improvements done while resolving deprecated functionality (#4426) * Un-deprecate LocalDateTme (#4426) * enh(Poco): Replace usage of deprecated functionality with other functions/classes (#4426) * chore(SSL): temporarily un-deprecate SSL-related functionality (#4426) * chore(SSL): temporarily un-deprecate old MongoDB protocol functionality (#4426) * enh(Poco): Minor Hash improvements (#4426) * enh(Foundation): Compile deprecated hash tests only when POCO_TEST_DEPRECATED is enabled (#4426) * enh(Net): Compile deprecated Socket::select functionality only when POCO_TEST_DEPRECATED is enabled (#4426) * enh(Bonjour): Replace deprecated Socket::select with PollSet (#4426) * enh(Poco): Introduce POCO_DEPRECATED macro to have the ability to disable deprecation warnings in applications (#4426) * test(ODBC): add few asserts to testStoredProcedureDynamicVar * fix(ODBC): rename DynamicAny -> DynamicVar in tests * fix(ODBC): make Dignostics static members inline to prevent explicit instantiation warnings on windows --------- Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
Closes #4426.