diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-02-18 00:34:19 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-18 05:31:04 +0000 |
commit | 17d7b26f354d00087b84de4fcddc755dbd0fabac (patch) | |
tree | 9ccf5d58c11f6ac398916469ee2bc94513ddd0d0 /buildscripts/linter | |
parent | 361eb6df572915f725303a2725550fba82d26f97 (diff) | |
download | mongo-17d7b26f354d00087b84de4fcddc755dbd0fabac.tar.gz |
SERVER-71737 Move boost optional requirement lint to clang-tidy
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index 876ba4e28ca..d82b30af217 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -58,7 +58,6 @@ _RE_VOLATILE = re.compile('[^_]volatile') _RE_MUTEX = re.compile('(^|[ ({,])stdx?::mutex[ ({]') _RE_ASSERT = re.compile(r'\bassert\s*\(') _RE_UNSTRUCTURED_LOG = re.compile(r'\blogd\s*\(') -_RE_STD_OPTIONAL = re.compile(r'\bstd::optional\b') _RE_TRACING_SUPPORT = re.compile(r'\bTracerProvider::(get|initialize)\b') _RE_COLLECTION_SHARDING_RUNTIME = re.compile(r'\bCollectionShardingRuntime\b') _RE_RAND = re.compile(r'\b(srand\(|rand\(\))') @@ -162,7 +161,6 @@ class Linter: self._check_for_nonmongo_assert(linenum) self._check_for_mongo_unstructured_log(linenum) self._check_for_mongo_config_header(linenum) - self._check_for_std_optional(linenum) self._check_for_tracing_support(linenum) self._check_for_collection_sharding_runtime(linenum) self._check_for_rand(linenum) @@ -284,12 +282,6 @@ class Linter: linenum, 'mongodb/unstructuredlog', 'Illegal use of unstructured logging, ' 'this is only for local development use and should not be committed.') - def _check_for_std_optional(self, linenum): - line = self.clean_lines[linenum] - if _RE_STD_OPTIONAL.search(line): - self._error(linenum, 'mongodb/stdoptional', - 'Use of std::optional, use boost::optional instead.') - def _check_for_tracing_support(self, linenum): line = self.clean_lines[linenum] if _RE_TRACING_SUPPORT.search(line): |