Commit 7cb5189
committed
Handle diagnostics through #if condition evaluation
Allow #if condition evaluation to produce proper diagnostics, including
warnings, while performing the evaluation. This covers both
warnings/errors directly coming from #if handling and also those
thrown as errors by the build configuration.
Introduce assertion functions to make it a lot easier to properly test
the tests with calls to these assertions.
Add the remaining diagnostics that were FIXME'd because we couldn't
report them properly before.1 parent 65fd3b9 commit 7cb5189
File tree
4 files changed
+415
-145
lines changed- Sources/SwiftIfConfig
- Tests/SwiftIfConfigTest
4 files changed
+415
-145
lines changed
0 commit comments