Commit Graph

6 Commits

Author SHA1 Message Date
Ben Barham
392f98cb65 Skip new parser validation when skipping function bodies
This would otherwise result in false positives, since if the old parser
skipping a body with errors would cause a verification failure.

Don't perform round trip validation either, since we'll presumbly still
hit parsing the full file when not skipping bodies - there's no point
running it twice.

Resolves rdar://111032175.
2023-07-21 15:53:20 -07:00
Alex Hoppen
8e73c16aa5 [Parse] Fix a typo in the new parser diagnostics 2023-06-27 09:13:43 +02:00
Alex Hoppen
112c778077 Adjustments for re-structured effect specifiers 2023-01-25 19:29:29 +01:00
Doug Gregor
4ef35c5f14 Embrace the swift-syntax notion of Fix-Its as separate notes.
The swift-syntax diagnostic system always treats Fix-Its as separate
notes, which are never attached to the primary diagnostic. Embrace this
module in the mapping over to the existing C++ diagnostic engine.
2022-12-15 21:24:44 -08:00
Doug Gregor
f8e98ca454 [ASTGen] Make sure we handle Fix-Its without a matching note.
Any Fix-Its not associated with a note are automatically associated
with the main diagnostic.
2022-12-15 21:24:44 -08:00
Doug Gregor
33589de62f Experimentally emit diagnostics from the new Swift parser
Introduce the experimental feature `ParserDiagnostics`, which emits
diagnostics from the new Swift parser *first* for a source file. If
that produces any errors, we suppress any diagnostics emitted from the
C++ parser.
2022-12-15 21:24:44 -08:00