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

Unified Diff: tools/clang/scripts/blink_gc_plugin_flags.sh

Issue 551343002: Blink GC plugin: Add plugin flags for generating raw-pointer errors and unneeded-finalizer warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: presubmit Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/blink_gc_plugin_flags.sh
diff --git a/tools/clang/scripts/blink_gc_plugin_flags.sh b/tools/clang/scripts/blink_gc_plugin_flags.sh
index 25c587294b076ea0940b384c73021707060a8864..eebb69be95bb2b56f2d747c61761f406d3306aca 100755
--- a/tools/clang/scripts/blink_gc_plugin_flags.sh
+++ b/tools/clang/scripts/blink_gc_plugin_flags.sh
@@ -19,11 +19,16 @@ $(grep LIBRARYNAME "$THIS_ABS_DIR"/../blink_gc_plugin/Makefile \
| cut -d ' ' -f 3)
FLAGS=""
+PREFIX="-Xclang -plugin-arg-blink-gc-plugin -Xclang"
for arg in "$@"; do
if [[ "$arg" = "enable-oilpan=1" ]]; then
- FLAGS="$FLAGS -Xclang -plugin-arg-blink-gc-plugin -Xclang enable-oilpan"
+ FLAGS="$FLAGS $PREFIX enable-oilpan"
elif [[ "$arg" = "dump-graph=1" ]]; then
- FLAGS="$FLAGS -Xclang -plugin-arg-blink-gc-plugin -Xclang dump-graph"
+ FLAGS="$FLAGS $PREFIX dump-graph"
+ elif [[ "$arg" = "warn-raw-ptr=1" ]]; then
+ FLAGS="$FLAGS $PREFIX warn-raw-ptr"
+ elif [[ "$arg" = "warn-unneeded-finalizer=1" ]]; then
+ FLAGS="$FLAGS $PREFIX warn-unneeded-finalizer"
fi
done
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/class_does_not_require_finalization.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698