Robert Widmann
18b79ffcfd
Resolve a Layering Violation in libBasic
...
Basic should not be allowed to link Parse, yet it was doing so
to allow Version to provide a constructor that would conveniently
parse a StringRef. This entrypoint also emitted diagnostics, so it
pulled in libAST.
Sink the version parser entrypoint down into Parse where it belongs
and point all the clients to the right place.
2022-09-09 00:21:30 -07:00
Xi Ge
9ea86830ff
ABI checker: we should also print ABI breakages when diagnostics are serialized
...
This ensures users can review ABI checker failures from build logs alone.
rdar://98624267
2022-08-29 13:26:17 -07:00
Xi Ge
3b522c747d
ABIChecker: removing the importation of SwiftOnoneSupport shouldn't be flagged as breakage
...
SwiftOnoneSupport is automatically imported in the debug mode. When diffing the release build with
a baseline genearted in the debug build, we may hit this false positive.
2022-08-15 12:00:48 -07:00
Xi Ge
227c2ba9a1
ABI checker: adding protocol requirement with default implementation should not be flagged as breakage
...
rdar://98583968
2022-08-15 11:47:33 -07:00
Xi Ge
2fba124779
ABIChecker: diagnose removal of deprecated symbols by default
...
rdar://95385661
2022-06-17 10:37:28 -07:00
Xi Ge
dfb53212d8
ABIChecker: add an option to avoid diagnosing about certain given SPI groups
...
rdar://92032848
2022-06-04 22:28:37 -07:00
Josh Soref
66d267e6ff
Spelling driver ( #42516 )
...
* spelling: associated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: change
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: declaration
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: dependents
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: deterministically
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: embedded
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: exclude
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: filesystem
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: given
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: grained
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: incrementality
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: invoke
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: locals
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: preexisting
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: should
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: supplementary
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: suppress
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2022-04-22 09:10:43 -07:00
Alex Hoppen
63c31033fc
[Frontend] Load standard libarary in CompilerInstance::setup
...
Instead of checking that the stdlib can be loaded in a variety of places, check it when setting up the compiler instance. This required a couple more checks to avoid loading the stdlib in cases where it’s not needed.
To be able to differentiate stdlib loading failures from other setup errors, make `CompilerInstance::setup` return an error message on failure via an inout parameter. Consume that error on the call side, replacing a previous, more generic error message, adding error handling where appropriate or ignoring the error message, depending on the context.
2021-12-13 15:32:08 +01:00
Xi Ge
819e53e94f
ABI checker: removing deprecated APIs should be considered acceptable
2021-10-20 13:16:52 -07:00
swift-ci
13a25aa85b
Merge remote-tracking branch 'origin/main' into rebranch
2021-08-20 09:13:20 -07:00
Xi Ge
35cb97b8ad
ABIChecker: minor refactoring to move code to APIDigester lib. NFC
2021-08-19 22:27:14 -07:00
swift-ci
ea513883e4
Merge remote-tracking branch 'origin/main' into rebranch
2021-08-19 19:34:03 -07:00
Xi Ge
3d8fcf20f3
ABIChecker: include import decls in the intermediate JSON file
...
Removing an import statement can be potentially source-breaking. We should
prepare for diagnosing such case.
2021-08-18 15:55:00 -07:00
swift-ci
97cfa6b6f8
Merge remote-tracking branch 'origin/main' into rebranch
2021-07-13 13:52:43 -07:00
Xi Ge
515cf21ba3
driver: refactor driver tool logics into a library. NFC
2021-07-13 10:03:12 -07:00