DescriptionCheck IPC messages for banned types on Android.
This change enables check-ipc option for find-bad-constructs Clang
plugin on Android. With that option Clang plugin will check that the
following types are not used in IPC messages:
1. Types: long / unsigned long (but not typedefs to)
2. Typedefs: intmax_t, uintmax_t, intptr_t, uintptr_t, wint_t, size_t,
rsize_t, ssize_t, ptrdiff_t, dev_t, off_t, clock_t, time_t, suseconds_t
(including typedefs to)
3. Any template referencing the above (e.g. std::vector<size_t>)
These types are banned because they are not stable across 32/64-bit platforms.
BUG=581409
Committed: https://crrev.com/972c22efaddb8a541351329c9e7609d04d75b95f
Cr-Commit-Position: refs/heads/master@{#389850}
Patch Set 1 #Patch Set 2 : Exclude chromeos and chromecast #Patch Set 3 : Remove is_chromecast from GN #Patch Set 4 : Enable only on Android (where chromecast is not enabled?) #Patch Set 5 : rebase #Patch Set 6 : Re-enable Linux and use defined(is_chromecast) #
Total comments: 1
Patch Set 7 : Use import, remove defined() hack #Messages
Total messages: 18 (7 generated)
|