Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: tools/valgrind/unused_suppressions.py

Issue 11421163: Add a tool to look for unused suppressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tools/valgrind/suppressions.py ('K') | « tools/valgrind/test_suppressions.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/valgrind/unused_suppressions.py
diff --git a/tools/valgrind/unused_suppressions.py b/tools/valgrind/unused_suppressions.py
new file mode 100755
index 0000000000000000000000000000000000000000..0f336f136d09e98f6932db720dc0f032dc2b6b36
--- /dev/null
+++ b/tools/valgrind/unused_suppressions.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+import urllib2
+
+import suppressions
+
+
+def main():
+ supp = suppressions.GetSuppressions()
+
+ all_supps = []
+ for supps in supp.values():
+ all_supps += [s.description for s in supps]
+ sys.stdout.write(urllib2.urlopen(
+ 'http://chromium-build-logs.appspot.com/unused_suppressions',
+ '\n'.join(all_supps)).read())
+ return 0
+
+if __name__ == "__main__":
+ sys.exit(main())
« tools/valgrind/suppressions.py ('K') | « tools/valgrind/test_suppressions.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698