Commit Graph

7 Commits

Author SHA1 Message Date
Becca Royal-Gordon
ef97f5c338 [NFC] Handle Windows error spelling difference
lolsob
2021-02-10 13:44:58 -08:00
Becca Royal-Gordon
c250165037 Fix attempts to fix Windows tests 2021-02-10 11:46:46 -08:00
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
Becca Royal-Gordon
622d64928b [NFC] Fix Windows driver tests 2021-02-09 14:17:35 -08:00
Becca Royal-Gordon
276393f596 [NFC] Note missing access note validation 2021-02-09 14:17:35 -08:00
Becca Royal-Gordon
bf13139495 Allow unknown keys in access notes
LLVM’s YAML support wants to show a hard error if an unknown string appears in an access note. Instead, emit a remark but load the parts of the access note we do understand to allow for future expansion of access notes.
2021-02-09 14:17:35 -08:00
Becca Royal-Gordon
e42294737f Handle access note I/O and parse errors 2021-02-09 14:17:35 -08:00