commit | c670bb919484bbf611c085c04c36287276c018d4 | [log] [tgz] |
---|---|---|
author | Tor Norbye <tnorbye@google.com> | Fri May 17 04:07:33 2024 -0700 |
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Sat May 18 06:46:45 2024 +0000 |
tree | a1a5b38ffe672ac5daa03b7e71355cd576c81c72 | |
parent | 73d8d4c762400fb389b45deceb64633a5158de98 [diff] |
Switch to the analysis API to more accurately detect non-returning calls Until now we've had a hardcoded list of methods known not to return, such as the Kotlin standard library methods `error` and `TODO`. This CL updates it to use the analysis API instead, such that it can look for methods that use the Nothing return type. This will pick up for example `exitProcess` and `numberFormatError` and additional methods in the user's own code. Bug: 135714717 Test: VersionChecksTest.testExceptionsAndErrorsAsExitPoints (updated) Change-Id: I4bf3eb944e1c65251237efa0a7b84b74d9598442
This project contains: