Commit Graph

13 Commits

Author SHA1 Message Date
Rob Prentiss
ebe20a441c api_checker: Drop support for Python 2
This converts the `utils/api_checker` scripts to support Python 3 only.
It removes all `from __future__` imports, and switches any `python`
shebangs to `python3`.
2022-03-09 10:27:54 -08:00
Argyrios Kyrtzidis
0701eb7d4c [utils/api_checker] Adjust the script for inferring imports from an SDK and add a couple of utility scripts 2020-08-17 18:31:40 -07:00
Meghana Gupta
b34791a0a0 Update code as per Apple Style Guide
whitelist -> allowlist
blacklist -> denylist
2020-07-24 11:37:15 -07:00
tbkka
868425be8a More Python3 lint fixes (#32967)
* More Python3 lint fixes

Some of the issues addressed include:
* Don't use `l` as a variable name (confusable with `1` or `I`)
* `print` statement does not exist in Py3, use `print` function instead
* Implicit tuple deconstruction in function args is no longer supported,
  use explicit splat `*` at the call site instead
* `xrange` does not exist in Py3, use `range` instead

* Better name per review feedback
2020-07-19 21:44:13 -07:00
Xi Ge
6562fa47a3 Merge pull request #26748 from nkcsgexi/fixed-modules-swift
swift-api-checker: rename existing fixed-module lists to fixed-clang-modules
2019-08-20 16:25:54 -07:00
Xi Ge
362ece8445 swift-api-checker: add support for invoking low-level executable using iosmac target 2019-08-20 15:39:09 -07:00
Xi Ge
d388bac43a swift-api-checker: rename existing fixed-module lists to fixed-clang-modules
This patch also adds fixed-swift-modules to hard-code CreateML, which could
not be found in the regular framework search path.
2019-08-20 12:19:46 -07:00
Xi Ge
756be16664 swift-api-checker: teach infer-imports to find all catalyst-supporting Swift frameworks 2019-08-20 10:51:30 -07:00
Xi Ge
2908c491f6 swift-api-checker: teach the script to collect all frameworks with Swift overlay in SDKs 2019-07-08 13:14:07 -07:00
Xi Ge
06c958e6af swift-api-checker: teach the script to collect Swift only frameworks from the SDK.
This will only include frameworks like SwiftUI, Combine, etc.

Related: rdar://48456712
2019-06-13 12:36:56 -07:00
Argyrios Kyrtzidis
ea978d9dc3 [api_checker/infer-imports.py] Look for Swift-only frameworks as well 2019-06-12 17:11:44 -07:00
Xi Ge
dc3261f14b swift-api-checker: avoiding empty file for fixed module list. rdar://49382586 2019-03-28 15:37:21 -07:00
Xi Ge
6c0e0ee4f5 utils: add a convenient python wrapper for swift-api-digester
Based on the same concept of swift-api-dump, this python wrapper
provides framework authors a convenient way to generate baseline or
diagnose ABI/API breakages from an existing toolchain where it has
swift-api-digester installed.

cmake installation part will be added in a separate PR.

rdar://problem/29649661
2019-03-19 17:48:16 -07:00