DescriptionCheck for unstable types in IPC messages.
We want IPC messages to be stable so that 32-bit and 64-bit processes
can talk to each other. This change adds a check to find-bad-constructs
Clang plugin to detect usage of the following unstable types 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>)
BUG=581409
Committed: https://crrev.com/2bc894640e0423cad921aed8d234adc375999771
Cr-Commit-Position: refs/heads/master@{#385469}
Patch Set 1 #Patch Set 2 : Support delayed-template-parsing; remove flaky test; don't visit instantiations #
Total comments: 1
Patch Set 3 : rebase #Patch Set 4 : Ignore system headers; fix comment #
Total comments: 4
Patch Set 5 : rebase #Patch Set 6 : Add comment #
Messages
Total messages: 28 (7 generated)
|