================
@@ -421,13 +421,7 @@ As an example, the module map file for the C standard
library might look a bit l
.. parsed-literal::
- module std [system] [extern_c] {
----------------
ian-twilightcoder wrote:
The problem with `[extern_c]` is it sticks all of the includes in the module
inside of extern C which runs you into `-Wmodule-import-in-extern-c` which is
promoted to an error by default. Plus you never know when an include will
transitively include a C++ header like <stdint.h>, so you really don't _want_
your includes to be extern C. It's kind of a flawed attribute, at some point I
would propose that we remove it.
https://github.com/llvm/llvm-project/pull/165057
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits