SERVER-90610: Enable tidy check misc-unused-alias-decls (#22297)

GitOrigin-RevId: 0ad1fdc602207d30cd4386a18d8a64c7379709de
This commit is contained in:
Stephanie 2024-05-28 10:25:08 -04:00 committed by MongoDB Bot
parent 37739f3ecf
commit bcbe52fce6
15 changed files with 1 additions and 23 deletions

View File

@ -37,6 +37,7 @@ Checks: '-*,
misc-static-assert,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
misc-unused-alias-decls,
misc-unused-using-decls,
modernize-avoid-bind,
modernize-deprecated-headers,
@ -119,7 +120,6 @@ Checks: '-*,
-misc-redundant-expression,
-misc-throw-by-value-catch-by-reference,
-misc-unconventional-assign-operator,
-misc-unused-alias-decls,
-modernize-use-bool-literals,
-modernize-use-emplace,
-modernize-use-noexcept,

View File

@ -96,7 +96,6 @@
*/
namespace fs = boost::filesystem;
namespace moe = mongo::optionenvironment;
using namespace mongo::sdam;
namespace mongo::sdam {

View File

@ -101,7 +101,6 @@
*/
namespace fs = boost::filesystem;
namespace moe = mongo::optionenvironment;
using namespace mongo::sdam;
namespace mongo::sdam {

View File

@ -92,8 +92,6 @@
namespace mongo {
namespace mb = mutablebson;
namespace {
MONGO_FAIL_POINT_DEFINE(hangBeforeThrowWouldChangeOwningShard);

View File

@ -80,8 +80,6 @@ namespace mongo {
MONGO_FAIL_POINT_DEFINE(hangBeforeUpsertPerformsInsert);
namespace mb = mutablebson;
namespace {
const char idFieldName[] = "_id";

View File

@ -131,8 +131,6 @@ NamespaceString parseGraphLookupFromAndResolveNamespace(const BSONElement& elem,
using boost::intrusive_ptr;
namespace dps = ::mongo::dotted_path_support;
std::unique_ptr<DocumentSourceGraphLookUp::LiteParsed> DocumentSourceGraphLookUp::LiteParsed::parse(
const NamespaceString& nss, const BSONElement& spec) {
uassert(ErrorCodes::FailedToParse,

View File

@ -185,8 +185,6 @@ using std::ostringstream;
using std::string;
using std::vector;
namespace dps = ::mongo::dotted_path_support;
using ChangeStreamRequirement = StageConstraints::ChangeStreamRequirement;
using HostTypeRequirement = StageConstraints::HostTypeRequirement;
using PositionRequirement = StageConstraints::PositionRequirement;

View File

@ -102,7 +102,6 @@ namespace {
using namespace mongo;
namespace wcp = ::mongo::wildcard_planning;
namespace dps = ::mongo::dotted_path_support;
/**
* Casts 'node' to a FetchNode* if it is a FetchNode, otherwise returns null.

View File

@ -92,8 +92,6 @@ using std::string;
using std::unique_ptr;
using std::vector;
namespace dps = ::mongo::dotted_path_support;
//
// Helpers for bounds explosion AKA quick-and-dirty SERVER-1205.
//

View File

@ -596,7 +596,6 @@ StatusWith<std::unique_ptr<QuerySolution>> tryToBuildSearchQuerySolution(
using std::unique_ptr;
namespace dps = ::mongo::dotted_path_support;
// Copied verbatim from db/index.h
static bool isIdIndex(const BSONObj& pattern) {
BSONObjIterator i(pattern);

View File

@ -77,8 +77,6 @@
using std::endl;
using std::string;
namespace moe = ::mongo::optionenvironment;
namespace mongo {
namespace {

View File

@ -59,8 +59,6 @@ namespace mongo {
namespace executor {
namespace connection_pool_test_details {
namespace m = unittest::match;
class ConnectionPoolTest : public unittest::Test {
public:
constexpr static Milliseconds kNoTimeout = Milliseconds{-1};

View File

@ -48,8 +48,6 @@
namespace mongo::unittest {
namespace fs = ::boost::filesystem;
using namespace fmt::literals;
void GoldenTestContext::printTestHeader(HeaderFormat format) {

View File

@ -68,7 +68,6 @@
namespace {
namespace stdx = mongo::stdx;
namespace mus = mongo::unittest::stringify;
bool containsPattern(const std::string& pattern, const std::string& value) {

View File

@ -47,7 +47,6 @@
namespace mongo {
namespace moe = mongo::optionenvironment;
using std::string;
SSLParams sslGlobalParams;