summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-07-17 22:39:56 -0700
committerBrian Carlstrom <bdc@google.com>2013-07-18 00:13:18 -0700
commitdf62950e7a32031b82360c407d46a37b94188fbb (patch)
tree038bf95a2ce296ae3e0c30a131ac22c0986f0f52 /tools
parent0cd7ec2dcd8d7ba30bf3ca420b40dac52849876c (diff)
downloadart-df62950e7a32031b82360c407d46a37b94188fbb.zip
art-df62950e7a32031b82360c407d46a37b94188fbb.tar.gz
art-df62950e7a32031b82360c407d46a37b94188fbb.tar.bz2
Fix cpplint whitespace/parens issues
Change-Id: Ifc678d59a8bed24ffddde5a0e543620b17b0aba9
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cpplint.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/cpplint.py b/tools/cpplint.py
index 30c7128..da5a938 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.