Enable template checking for the clang plugin on Android.
This enables the plugin to check templated classes for the following things: - Refcounted types have private destructors. - WeakPtrFactory members are the last members BUG=441916 Review URL: https://codereview.chromium.org/1162623003 Cr-Original-Commit-Position: refs/heads/master@{#331907} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: b0dad9e37be79905855ac637a041429775582edd
This commit is contained in:
Родитель
d1628f6518
Коммит
dc0b2a3f2b
|
@ -2182,7 +2182,7 @@
|
|||
'clang_dynlib_flags%': '',
|
||||
}],
|
||||
# https://crbug.com/441916
|
||||
['OS=="linux" or OS=="mac"', {
|
||||
['OS=="android" or OS=="linux" or OS=="mac"', {
|
||||
'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates ',
|
||||
}, { # OS != "linux"
|
||||
'clang_plugin_args%': ''
|
||||
|
|
|
@ -32,7 +32,7 @@ config("find_bad_constructs") {
|
|||
}
|
||||
|
||||
# https://crbug.com/441916
|
||||
if (is_linux || is_mac) {
|
||||
if (is_android || is_linux || is_mac) {
|
||||
cflags += [
|
||||
"-Xclang",
|
||||
"-plugin-arg-find-bad-constructs",
|
||||
|
|
Загрузка…
Ссылка в новой задаче