[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 3 11:35:32 PST 2024


zygoloid wrote:

How about instead using `-fvisibility-global-new-delete=<value>`? We want a mutually-exclusive set of options here, and we know we want more than two of them, and a flag with an argument value is the way we usually express that.

Perhaps we can use values of `force-hidden`, `force-default` to force the visibility to specific things, and something like `unconstrained` or `source` to say "use the normal visibility calculation"? (It's a bit unfortunate that we can't use `default` for that, given that it means something else...) `-fvisibility-global-new-delete-hidden` could then be converted into a deprecated synonym for `-fvisibility-global-new-delete=force-hidden`.

https://github.com/llvm/llvm-project/pull/75364


More information about the cfe-commits mailing list