Add remove_unneeded_adapt_callback tool to base_bind_rewriters
This CL adds a rewriter to //tools/clang/base_bind_rewriters
which removes calls to base::AdaptCallbackForRepeating when the
returned base::RepeatingCallback is immediately converted
to a base::OnceCallback.
Change-Id: I14ca9af2b3abc095b978c2cd7cf1fea1844ef428
Reviewed-on: https://chromium-review.googlesource.com/817740
Commit-Queue: Yannic Bonenberger <[email protected]>
Reviewed-by: Taiju Tsuiki <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#571999}
diff --git a/docs/clang_tool_refactoring.md b/docs/clang_tool_refactoring.md
index b23d8d85..107ff8e 100644
--- a/docs/clang_tool_refactoring.md
+++ b/docs/clang_tool_refactoring.md
@@ -123,9 +123,9 @@
ninja -d keeprsp -C out/Debug # For Windows
# experimental alternative:
-$gen_targets = $(ninja -C out/gn -t targets all \
+$gen_targets = $(ninja -C out/Debug -t targets all \
| grep '^gen/[^: ]*\.[ch][pc]*:' \
- | cut -f 1 -d :`)
+ | cut -f 1 -d :)
ninja -C out/Debug $gen_targets
```
@@ -150,7 +150,7 @@
```shell
tools/clang/scripts/run_tool.py --tool empty_string \
- --generated-compdb \
+ --generate-compdb \
-p out/Debug net >/tmp/list-of-edits.debug
```