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

Side by Side Diff: tools/clang/BindMigrate/README.chromium

Issue 7886056: Clang plugin that rewrites PostTask(_, NewRunnableMethod(...)) to PostTask(_, base::Bind(...)); (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lifetime issue where BindMigrateAction is deleted before the ASTConsumer is finished. Created 9 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/clang/BindMigrate/PostTaskTransform.cpp ('k') | tools/clang/BindMigrate/Transform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This is a simple example demonstrating how to use clang's facility for
2 providing AST consumers using a plugin.
3
4 Build the plugin by running `make` in this directory.
5
6 Once the plugin is built, you can run it using:
7 --
8 Linux:
9 $ clang -cc1 -load ../../Debug+Asserts/lib/libBindMigrate.so -plugin bind-migrat e some-input-file.cc
10
11 Mac:
12 $ clang -cc1 -load ../../Debug+Asserts/lib/libBindMigrate.dylib -plugin bind-mig rate some-input-file.cc
13
14 To use with gyp, do something like:
15
16 GYP_DEFINES='clang=1 clang_load=/abs/path/to/libBindMigrate.dylib
17 clang_add_plugin=bind-migrate' gclient runhooks
18
19 then do a clobber build to run the plugin on all files.
OLDNEW
« no previous file with comments | « tools/clang/BindMigrate/PostTaskTransform.cpp ('k') | tools/clang/BindMigrate/Transform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698