History log of /art/tools/cpplint.py
Revision Date Author Comments
2248c17cd3483c030571cc6163a0e0870da998c2 06-Nov-2013 Chirayu Desai <cdesai@cyanogenmod.org> tools: use '/usr/bin/env python' instead of '/usr/bin/python'

* This is how it is done in other scripts in the AOSP tree, as
'/usr/bin/python' may be python3 on some distros, which isn't
supported yet.

Change-Id: I0d9857fc6a122f505953fddcd6244dad75b1838a
02e25119b15a6f619f17db99f5d05124a5807ff3 15-Aug-2013 Mathieu Chartier <mathieuc@google.com> Fix up TODO: c++0x, update cpplint.

Needed to update cpplint to handle const auto.

Fixed a few cpplint errors that were being missed before.

Replaced most of the TODO c++0x with ranged based loops. Loops which
do not have a descriptive container name have a concrete type instead
of auto.

Change-Id: Id7cc0f27030f56057c544e94277300b3f298c9c5
3b074e60b2b906e9da5257d09de62b14867cb48e 20-Jul-2013 Elliott Hughes <enh@google.com> readdir is safer than readdir_r.

The upstream cpplint.py already made this change.

Change-Id: I9614d51080557eab6730cffd476e01e7872729d0
1895ea386ca78573302483f589ebabd8ce1480e7 18-Jul-2013 Brian Carlstrom <bdc@google.com> Fix cpplint readability/fn_size issues

Change-Id: I1efdb07a948a2af49db1a9d21ccab16dacc03a54
df62950e7a32031b82360c407d46a37b94188fbb 18-Jul-2013 Brian Carlstrom <bdc@google.com> Fix cpplint whitespace/parens issues

Change-Id: Ifc678d59a8bed24ffddde5a0e543620b17b0aba9
fc0e3219edc9a5bf81b166e82fd5db2796eb6a0d 17-Jul-2013 Brian Carlstrom <bdc@google.com> Fix multiple inclusion guards to match new pathnames

Change-Id: Id7735be1d75bc315733b1773fba45c1deb8ace43
08fc03ae5dded4adc9b45b7014a4b9dfedbe95a6 27-Jun-2012 Elliott Hughes <enh@google.com> Include held locks in SIGQUIT thread dumps.

Handy if you have an ANR that's locking related. Quick tour:

at org.apache.harmony.dalvik.NativeTestTarget.emptyJniStaticSynchronizedMethod0(Native method)
- locked <0x60135aa8> (a java.lang.Class<org.apache.harmony.dalvik.NativeTestTarget>)
at java.lang.reflect.Method.invoke(Native method)
at C.whileTrue(Main.java:63)
at C.synchronizedOnClassString(Main.java:56)
- locked <0x60002a70> (a java.lang.Class<java.lang.String>)
at C.nestedSynchronizationWithTryCatch(Main.java:44)
- locked <0x61336b90> (a java.lang.String)
- locked <0x61336bd0> (a java.lang.String)
at C.nestedSynchronization(Main.java:35)
- locked <0x61336b18> (a java.lang.String)
- locked <0x61336b50> (a java.lang.String)
at C.synchronizedOnClassC(Main.java:30)
- locked <0x613366f8> (a java.lang.Class<C>)
at C.noLocks(Main.java:27)
at C.<clinit>(Main.java:24)
- locked <0x613366f8> (a java.lang.Class<C>)
at Main.main(Main.java:19)

A non-static synchronized native method works too:

at org.apache.harmony.dalvik.NativeTestTarget.emptyJniSynchronizedMethod0(Native method)
- locked <0x613371a8> (a org.apache.harmony.dalvik.NativeTestTarget)
...

Note that most stack traces don't look any different; the above is a
pathological example that exercises different kinds of locking. Testing
with system_server shows most threads don't hold any locks.

Future work (marked by TODO) is that explicit JNI MonitorEnter calls in
native code aren't shown.

Change-Id: I2747f5cddb4ef64b1935736f084a68fe8e4005e9
db385708bfcfbd64bdc9cb46fdc0e66344363848 21-Jun-2012 Elliott Hughes <enh@google.com> Update cpplint.py.

From https://code.google.com/p/google-styleguide/source/browse/trunk#trunk%2Fcpplint .

Change-Id: Ie9c0efe36c9af5c1fead502ae673ca6693f3cf7b
08b82a99de4dfeb0a74b0922051f46516ca85398 05-Apr-2012 Elliott Hughes <enh@google.com> Don't explicitly request python2.4.

This is obsolete historical cruft.

Change-Id: I140a93ac04f5be0034812f90204e6f9ae36d2d5f
59848dad0b711856fc1bfb81748bbe944b045640 24-Jul-2011 Brian Carlstrom <bdc@google.com> Import cpplint.py and make target cpplint-art

Imported without change from http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
Will start making local changes to cpplint.py in followup changes.

Change-Id: I0fda185f4a9f96815739db8f862cf8537402bf3b