From df62950e7a32031b82360c407d46a37b94188fbb Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Wed, 17 Jul 2013 22:39:56 -0700 Subject: Fix cpplint whitespace/parens issues Change-Id: Ifc678d59a8bed24ffddde5a0e543620b17b0aba9 --- tools/cpplint.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/cpplint.py') diff --git a/tools/cpplint.py b/tools/cpplint.py index 30c712856e..da5a938fd3 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -1526,7 +1526,10 @@ 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|delete)\b', fncall) and + # BEGIN android-changed + # not Search(r'\b(if|for|while|switch|return|delete)\b', fncall) and + not Search(r'\b(if|for|while|switch|return|delete|new)\b', fncall) and + # END android-changed # Ignore pointers/references to functions. not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and # Ignore pointers/references to arrays. -- cgit v1.2.3-59-g8ed1b