DescriptionAdd the following Clang plugins:
PrintNamesAndSizes
-Find top-level type definitions. Print their kind (struct, enum, etc), typename, size, and location.
FindAffectedInterfaces
-Given some typenames, find other types which are affected if that type changes. This is specifically for determining which interfaces are affected by changing a struct or structs.
Also add a Makefile to build the plugins and a README describing how to run them.
Also add a python script that runs PrintNamesAndSizes with several different targets and generates compile-time checks in to the PPAPI source code to enforce that sizes are consistent, or if they change, we find out quickly.
This was broken off from a bigger CL:
http://codereview.chromium.org/5340003/
BUG=61004, 62983
TEST=None
See this CL for an example of what these plugins helped me do:
http://codereview.chromium.org/5674004
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69187
I'll address improving documentation per dspringer's recommendations in a soon-to-come CL. I landed this to hopefully help Neb with a CL he's working on.
Patch Set 1 #Patch Set 2 : '' #
Total comments: 10
Patch Set 3 : '' #
Total comments: 26
Messages
Total messages: 7 (0 generated)
|