Files
swift-mirror/test/Sema/Inputs/extra.accessnotes
Becca Royal-Gordon 8d0040fa2b Improve access note error handling
The LLVM rebranch added an “AllowUnknownKeys” setting to llvm::yaml::Input, which lets us rip out a lot of marginal code and encourages a broader rework of access note error diagnosis:

• Access note warnings and errors are now diagnosed as they’re found during YAML parsing
• They now have proper SourceLocs inside the .accessnotes file
• They’re now tested using -verify-additional-file instead of FileCheck
• A lot of gross duct tape is now gone
2021-02-10 00:29:34 -08:00

8 lines
339 B
Plaintext

Reason: Access notes containing future, unknown syntax
CorinthianLeather: 'rich'
# expected-remark@-1 {{ignored invalid content in access notes file: unknown key 'CorinthianLeather'}}
Notes:
- Name: 'fn()'
CorinthianLeather: 'rich'
# expected-remark@-1 {{ignored invalid content in access notes file: unknown key 'CorinthianLeather'}}