mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously we set up the diagnostic options too early for these flags to be honored, in order to diagnose problems in parsing the arguments being passed to Clang. The solution is to decide that that diagnostic engine is a temporary one and to create a proper one later. (And if this sounds like a lousy solution, I don't disagree, but it's what Clang does too.) rdar://problem/39197895 and possibly something older but I can't find it
3 lines
82 B
C
3 lines
82 B
C
#warning "here is some warning about something"
|
|
#error "but this one is an error"
|