diff options
author | Tad Marshall <tad@10gen.com> | 2013-04-22 08:20:35 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-04-22 08:20:35 -0400 |
commit | 41e3d093a280680d113aa2c92fa0aebf00b9212a (patch) | |
tree | 3bc0212401c17b802bf60d72b4cb3b3580a77349 /buildscripts/errorcodes.py | |
parent | 89448f1a64d95c796cbf88c46f27b50efd08ed17 (diff) | |
download | mongo-41e3d093a280680d113aa2c92fa0aebf00b9212a.tar.gz |
Make "bare assert" check more selective
Do not trigger "bare assert" error when " assert(" appears in a
quoted string, as it does in src/mongo/shell/mongo.cpp for example
(as generated by the Visual Studio build).
Diffstat (limited to 'buildscripts/errorcodes.py')
-rwxr-xr-x | buildscripts/errorcodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index ef5e1a88877..e49073cadce 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -40,7 +40,7 @@ def readErrorCodes( callback, replaceZero = False ): re.compile( "((fassertFailed)()) *\(( *)(\d+)" ) ] - bad = [ re.compile( "\sassert *\(" ) ] + bad = [ re.compile( "^\s*assert *\(" ) ] for x in utils.getAllSourceFiles(): |