diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2022-04-18 15:19:48 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-20 19:01:16 +0000 |
commit | 638812d97b12e06776a40069c0b9930234c629f2 (patch) | |
tree | 9b6b5a22e58fd3b102e3733268c74c01f2115798 /buildscripts/linter | |
parent | be752f7877f795faa42432be79039faf2b968660 (diff) | |
download | mongo-638812d97b12e06776a40069c0b9930234c629f2.tar.gz |
SERVER-64430 Fix cpplint regex error for stdx::mutex
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/simplecpplint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/linter/simplecpplint.py b/buildscripts/linter/simplecpplint.py index a7b74050687..0fef2de9e9c 100644 --- a/buildscripts/linter/simplecpplint.py +++ b/buildscripts/linter/simplecpplint.py @@ -55,7 +55,7 @@ _RE_COMMENT_STRIP = re.compile("//.*") _RE_PATTERN_MONGO_POLYFILL = _make_polyfill_regex() _RE_VOLATILE = re.compile('[^_]volatile') -_RE_MUTEX = re.compile('[ ({,]stdx?::mutex[ ({]') +_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') |