diff options
author | Juan Gu <juan.gu@mongodb.com> | 2023-02-16 23:18:25 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-17 02:28:44 +0000 |
commit | f5ce056efc33ec6a304b85d7763c2403f5a307f7 (patch) | |
tree | b188d7da984bb12ad4c1bcc421544e0c1b97ba5f /buildscripts/linter | |
parent | 4702824a2cb37317a4af7842f1af48736f0fd08d (diff) | |
download | mongo-f5ce056efc33ec6a304b85d7763c2403f5a307f7.tar.gz |
SERVER-71747 Move mongo ctype lint to clang tidy
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index 8c7d775573c..876ba4e28ca 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -162,7 +162,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_ctype(linenum) self._check_for_std_optional(linenum) self._check_for_tracing_support(linenum) self._check_for_collection_sharding_runtime(linenum) @@ -285,12 +284,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_ctype(self, linenum): - line = self.clean_lines[linenum] - if 'include <cctype>' in line or 'include <ctype.h>' in line: - self._error(linenum, 'mongodb/ctype', - 'Use of prohibited <ctype.h> or <cctype> header, use "mongo/util/ctype.h"') - def _check_for_std_optional(self, linenum): line = self.clean_lines[linenum] if _RE_STD_OPTIONAL.search(line): |