diff options
author | Jooyung Han <jooyung.han@gmail.com> | 2024-02-21 14:46:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 21:46:25 -0800 |
commit | ec516ff3e6122069b36f32a6db8bb3dc672133fc (patch) | |
tree | 71fd5f3b765321399c03cbae3e09b8e416f16921 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | 44b717df4d837ce4e8d76b00cee2e122ae6ad28c (diff) | |
download | llvm-ec516ff3e6122069b36f32a6db8bb3dc672133fc.zip llvm-ec516ff3e6122069b36f32a6db8bb3dc672133fc.tar.gz llvm-ec516ff3e6122069b36f32a6db8bb3dc672133fc.tar.bz2 |
Fix __isOSVersionAtLeast for Android (#80496)
Allow pre-release APIs on pre-release devices.
The current implementation requires __ANDROID_API_FUTURE__ to use new
APIs on pre-release system. This makes it hard to maintain the codebase
because it should be switched a concrete version (e.g. __ANDROID_API_X__
on release of X).
Instead, we can just allow pre-release APIs on pre-release system
without mandating the major version of __ANDROID_API_FUTURE__.
Note that this doesn't make API guards just no-op in pre-release builds.
We can still rely on its compile-time checks and it still works as
expected with release builds. Even with pre-release builds, it's the
same as before because we would pass __ANDROID_API_FUTURE__ to make the
calls anyway.
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions