commit | 88ef0aa970a4f729df65e109ecbaa6dc7bd840d2 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Sat Dec 16 01:29:48 2023 +0000 |
committer | Steven Moreland <smoreland@google.com> | Mon Dec 18 18:55:44 2023 +0000 |
tree | be822b8ae61c0296bb5b81247e8400db4e693288 | |
parent | 250a0f9e67badefb920b858459b5aa3004c91f09 [diff] |
Hint to use 'u8' for small byte literal. I've been asked this question ~3 times this year, so automating this. This adds AidlConstantValue::IsLiteral which I don't like, if anyone feels strongly, I could make AidlConstantValue abstract to avoid this "literal by exclusion" logic which is errorprone. What this adds: Invalid type specifier for an int32 literal: byte (0xFF). Did you mean: 0xFFu8? Bugs: me Test: aidl_unittests Change-Id: Ic55540a2df79f44e08ab418522a0668a28bea73d
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview