mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user