Skip to content

Commit 6ccba70

Browse files
committed
[Incremental] Introducing: DependencyVerifier
The DependencyVerifier is a DiagnosticVerifier-alike utility that takes annotations in user code and transforms them into a set of expectations. Those expectations are met by corresponding "obligations", which are constructed by reading the contents of the referenced name tracker associated with the source files for each of the primary inputs to a frontend job. The verifier will then pair off expectations and obligations, and ensure that any remaining unpaired obligations are diagnosed as failures. This tool will not only ensure the correctness of the referenced name tracker's output, it will provide us with tests that ensure its output is stable, and give us the confidence to replace it with an evaluator-based tracking scheme in the future. Resolves rdar://59773883
1 parent d3edb5b commit 6ccba70

File tree

3 files changed

+693
-0
lines changed

3 files changed

+693
-0
lines changed

lib/Frontend/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ add_swift_host_library(swiftFrontend STATIC
33
ArgsToFrontendOptionsConverter.cpp
44
ArgsToFrontendOutputsConverter.cpp
55
CompilerInvocation.cpp
6+
DependencyVerifier.cpp
67
DiagnosticVerifier.cpp
78
Frontend.cpp
89
FrontendInputsAndOutputs.cpp

0 commit comments

Comments
 (0)