Files
swift-mirror/test/ClangImporter/Inputs/diags_from_header.h
Jordan Rose c3fc74e10c [ClangImporter] Honor -Xcc -W* flags for en/disabling Clang warnings (#15771)
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
2018-04-05 14:08:03 -07:00

3 lines
82 B
C

#warning "here is some warning about something"
#error "but this one is an error"