Skip to content

chore(RemotingNG, CodeGeneration): C++ attributes and deprecated credentials setters #5447 - #5505

Merged
matejk merged 2 commits into
mainfrom
5447-remotingng-attributes
Sep 28, 2026
Merged

matejk merged 2 commits into
mainfrom
5447-remotingng-attributes

Conversation

@matejk

@matejk matejk commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Part of #5447 (follows #5483).

RemotingNG, CodeGeneration and RemoteGen were imported after #5156 and #5463 and carry none of the 2.0 attributes. This brings them in line with the core: [[nodiscard]] on getters, queries, factories and scoped guards, [[noreturn]] on always-throw functions and rethrow() overrides, POCO_DEPRECATED on the credentials setters.

  • RemotingNG core, TCP, HTTP, SOAP, JSONRPC and REST: 609 [[nodiscard]], 3 [[noreturn]]; the two ignored FrameQueue::handleFrame results are asserted.
  • Transport::setUsername/setPassword/getUsername/getPassword (SOAP, JSONRPC, REST) deprecated in favor of setCredentials()/getCredentials(); library, testsuites, samples and user guides migrated.
  • CodeGeneration and RemoteGen: annotations, one no-op call and one dead declaration removed. Generated code is unchanged.

Tests: macOS clang and Linux GCC full builds with tests and samples; 676 CppUnit cases pass on both; clang-tidy and cppcheck report nothing new on the changed lines.

Follow-ups (separate issues): RemoteGen neither propagates attributes from the input header nor emits them on generated overrides; ClientHelper.h defines the server helper macro.

@matejk matejk added this to the Release 2.0 milestone Sep 27, 2026
@matejk
matejk merged commit cc0114f into main Sep 28, 2026
58 checks passed
@matejk
matejk deleted the 5447-remotingng-attributes branch September 28, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant