Skip to content

Conversation

@678098
Copy link
Collaborator

@678098 678098 commented Nov 13, 2025

  1. Update bmqt::Uri docs
  2. Cleanup headers in bmqt_uri.h / bmqt_uri.cpp
  3. Add future deprecation notes for bmqt::UriParse::initialize / bmqt::UriParse::shutdown
  4. Remove bmqt::UriParse::initialize / bmqt::UriParse::shutdown usage from the codebase
  5. Allow global allocator checks in UTs where it was disabled due to bmqt::Uri RegEx usage

@678098 678098 requested a review from a team as a code owner November 13, 2025 21:48
{
bdlma::LocalSequentialAllocator<1024> localAllocator(
bslma::Default::allocator());
bdlma::LocalSequentialAllocator<1024> localAllocator;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It uses the default allocator by default if no allocator provided


// Shut down the parser is a no-op.
bmqt::UriParser::shutdown();
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initialize/shutdown are simply no-op, not worth having any tests for it anymore

@678098 678098 force-pushed the 251113_bmqtUri_cleanup branch from 216ae7a to c1be850 Compare November 13, 2025 21:55
@678098 678098 changed the title Cleanup[bmqt::Uri]: add future deprecation note for initialize/shutdo… Cleanup[bmqt::Uri]: add deprecation note for initialize/shutdown Nov 13, 2025
@678098 678098 force-pushed the 251113_bmqtUri_cleanup branch 4 times, most recently from cf26d48 to fa6d1fb Compare November 13, 2025 22:23
@678098 678098 force-pushed the 251113_bmqtUri_cleanup branch from fa6d1fb to 226628b Compare November 13, 2025 22:26
Copy link

@bmq-oss-ci bmq-oss-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build 3135 of commit 226628b has completed with FAILURE

/// called.
static void shutdown();
/// DEPRECATED: Not needed anymore (no-op). This method will be marked
/// as `BSLA_DEPRECATED` in future release of libbmq.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen this pattern in other files.
For some reason, we don't add annotation BSLA_DEPRECATED right away and put a comment before this. Maybe it is done for someone who has warnings are errors setting

bsls::TimeUtil::initialize();

// Prepare the UriParser regexp
bmqt::UriParser::initialize();
Copy link
Collaborator Author

@678098 678098 Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there was no shutdown in bmqtool.
Also, there were no initialize/shutdown in our tutorial clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants