platform_build_soong/cc/config
Dan Albert 1a2462717e Replace stringly-typed API levels.
Handling of API levels within Soong is currently fairly difficult
since it isn't always clear based on context what kind of API level a
given string represents, how much canonicalizing and error checking
the code receiving the string are expected to do, or how those errors
should be treated.

The API level struct does not export its raw data, so as to keep its
"constructor" private to the android package, and to prevent misuse of
the `number` field, which is only an implementation detail for preview
API levels. API levels can be parsed with either
`android.ApiLevelFromUser`, which returns any errors to the caller, or
`android.ApiLevelOrPanic`, which is used in the case where the input
is trusted and any errors in parsing should panic. Even within the
`android` package, these APIs should be preferred over direct
construction.

For cases where there are context specific parsing requirements, such
as handling the "minimum" alias in the cc module,
`nativeApiLevelFromUser` and `nativeApiLevelOrPanic` should be used
instead.

Test: treehugger
Bug: http://b/154667674
Change-Id: Id52921fda32cb437fb1775ac2183299dedc0cf20
2020-09-18 12:41:28 -07:00
..
Android.bp LinuxBionic supports arm64 2020-09-09 21:57:10 +09:00
arm64_device.go Prefer armv8.2-a to armv8.2a for GNU as compatibility 2020-06-16 02:40:40 -07:00
arm64_fuchsia_device.go
arm64_linux_host.go LinuxBionic supports arm64 2020-09-09 21:57:10 +09:00
arm_device.go Remove implicit Bionic and kernel system includes. 2020-05-06 19:45:03 +01:00
cfi_exports.map
clang.go Allow globally disabling some clang-tidy checks. 2020-08-18 13:28:03 -07:00
global.go Replace stringly-typed API levels. 2020-09-18 12:41:28 -07:00
integer_overflow_blocklist.txt Rename CFI blocklist files. 2020-07-27 18:37:48 +00:00
OWNERS Add OWNERS for cc/config/vndk.go 2020-01-17 11:23:14 -08:00
tidy.go Add bugprone to global clang-tidy default checks 2020-03-03 12:05:22 -08:00
tidy_test.go
toolchain.go Add the cc_fuzz target. 2019-07-16 16:30:53 -07:00
vndk.go Merge "Port IdentityCredential HAL to AIDL." am: c2937d29a8 am: 14e3fc1a29 am: 3f003e3917 2020-02-19 23:18:16 +00:00
x86_64_device.go Remove implicit Bionic and kernel system includes. 2020-05-06 19:45:03 +01:00
x86_64_fuchsia_device.go Stop defining unused USE_SSSE3. 2019-07-12 22:40:45 -07:00
x86_darwin_host.go Add support for macOS 11 SDK 2020-07-14 16:53:43 -07:00
x86_device.go Remove implicit Bionic and kernel system includes. 2020-05-06 19:45:03 +01:00
x86_linux_bionic_host.go Remove implicit Bionic and kernel system includes. 2020-05-06 19:45:03 +01:00
x86_linux_host.go Allow Linux hosts to use ubsan runtime sanitizers. 2020-02-20 20:27:35 +00:00
x86_windows_host.go Set -fsjlj-exceptions for all 32-bit Windows compiles 2020-09-10 09:33:22 -07:00