remove C++ stuff from CheckSpacingForFunctionCall

This commit is contained in:
Julian Orth 2014-03-05 21:55:32 +01:00 committed by Thiago de Arruda
parent 95659707a8
commit 23a41ebf8f

View File

@ -2248,7 +2248,7 @@ def CheckSpacingForFunctionCall(filename, line, linenum, error):
# Note that we assume the contents of [] to be short enough that
# they'll never need to wrap.
if ( # Ignore control structures.
not Search(r'\b(if|for|while|switch|return|new|delete|catch|sizeof)\b',
not Search(r'\b(if|for|while|switch|return|sizeof)\b',
fncall) and
# Ignore pointers/references to functions.
not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and