Stop parsing into IfConfiDecl nodes in the C++ parser

When parsing #if...#endif regions, parse the active clause directly into
place in the AST without ever producing an IfConfigDecl instance.
This commit is contained in:
Doug Gregor
2024-09-18 20:20:00 -07:00
parent 4bb9a587fa
commit d762dd53f8
11 changed files with 105 additions and 115 deletions

View File

@@ -3,15 +3,13 @@
// More blah blah.
#if FOO
import Swift
#if FOO
class FooEnabled {}
typealias MyN = Int
#else
import Swift
class FooDisabled {}
typealias MyN = Int