Commit Graph

3 Commits

Author SHA1 Message Date
Rintaro Ishizaki
2e14337e4a [Parse] Don't allow attributed #errror/#warning (#15705) 2018-04-04 08:36:18 +09:00
Harlan
a42c5ce733 Add no-op visitor in SILGenFunction for #warning/#error (#15008)
* Add no-op visitor in SILGenFunction for #warning/#error

* Switch to a compile-based test

* Actually add file substitution
2018-03-06 12:26:39 -05:00
Harlan
5e02d2a877 Implement #warning and #error (#14048)
* Implement #warning and #error

* Fix #warning/#error in switch statements

* Fix AST printing for #warning/#error

* Add to test case

* Add extra handling to ParseDeclPoundDiagnostic

* fix dumping

* Consume the right paren even in the failure case

* Diagnose extra tokens on the same line after a diagnostic directive
2018-02-03 18:07:05 -05:00