summaryrefslogtreecommitdiff
path: root/buildscripts/errorcodes.py
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-04-22 08:20:35 -0400
committerTad Marshall <tad@10gen.com>2013-04-22 08:20:35 -0400
commit41e3d093a280680d113aa2c92fa0aebf00b9212a (patch)
tree3bc0212401c17b802bf60d72b4cb3b3580a77349 /buildscripts/errorcodes.py
parent89448f1a64d95c796cbf88c46f27b50efd08ed17 (diff)
downloadmongo-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-xbuildscripts/errorcodes.py2
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():