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

Issue 5730003: Add the following Clang plugins:... (Closed)

Created:
10 years ago by dmichael(do not use this one)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+746 lines, -0 lines) Patch
A ppapi/generate_ppapi_size_checks.py View 1 chunk +346 lines, -0 lines 10 comments Download
A ppapi/tests/clang/Makefile View 1 chunk +64 lines, -0 lines 0 comments Download
A ppapi/tests/clang/README View 1 chunk +32 lines, -0 lines 5 comments Download
A ppapi/tests/clang/find_affected_interfaces.cc View 1 2 1 chunk +154 lines, -0 lines 7 comments Download
A ppapi/tests/clang/print_names_and_sizes.cc View 1 2 1 chunk +150 lines, -0 lines 4 comments Download

Messages

Total messages: 7 (0 generated)
dmichael(do not use this one)
10 years ago (2010-12-10 22:18:27 UTC) #1
brettw
I don't understand clang, but this seems to make sense, so this is mostly a ...
10 years ago (2010-12-12 21:54:15 UTC) #2
dmichael(do not use this one)
Thanks, Brett! I'll give Neb or Dave S a chance to look too before committing. ...
10 years ago (2010-12-13 16:58:10 UTC) #3
neb
On 2010/12/13 16:58:10, dmichael wrote: > Thanks, Brett! I'll give Neb or Dave S a ...
10 years ago (2010-12-13 18:23:23 UTC) #4
dmichael(do not use this one)
+erg, for Clang expertise (if he has time).
10 years ago (2010-12-13 20:11:53 UTC) #5
David Springer
I tried to review this from the perspective of a potential user. I asked for ...
10 years ago (2010-12-13 21:23:08 UTC) #6
Elliot Glaysher
10 years ago (2010-12-13 21:56:43 UTC) #7
I didn't do an in depth check, but a brief passover the code found
nothing objectionable. OK.

On Mon, Dec 13, 2010 at 12:11 PM,  <dmichael@google.com> wrote:
> +erg, for Clang expertise (if he has time).
>
> http://codereview.chromium.org/5730003/
>

Powered by Google App Engine
This is Rietveld 408576698