# Formalizing @cdecl

**URL:** <https://forums.swift.org/t/formalizing-cdecl/40677>\
**Category:** Pitches\
**Created:** [September 27, 2020, 12:15am UTC](https://forums.swift.org/t/formalizing-cdecl/40677 "2020-09-27T00:15:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![woolsweater](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/woolsweater/32/2402_2.png) [@woolsweater](https://forums.swift.org/u/woolsweater)\
**Post date:** [September 27, 2020, 1:15am UTC](https://forums.swift.org/t/formalizing-cdecl/40677/7 "2020-09-27T01:15:22Z")

</div>

> [@jrose](#):
>
> `-emit-c-header` , even though it will sometimes have ObjC in it? `-emit-header` feels a bit too generic. `-emit-interoperation-header` is verbose without solving the generic. Suggestions?

Two flags?

`-emit-c-header` -- warns/errors if you have ObjC declarations  
`-emit-objc-header` -- happy with any combination of `@cdecl` or `@objc` declarations

---

_[View the full topic](https://forums.swift.org/t/formalizing-cdecl/40677)._
