Question on exception handling

Hi fellow clangers,
Is there a way to make clang recognize exception-related syntax (try, throw, catch, etc.), but not generate any codes for that (hence, no landing pad, no FDE or LSDA)?
I tried with -fno-exceptions, but got an error saying,
error: cannot use 'try' with exceptions disabled.
Many thanks,
- Gao.

No. libc++ and the Visual C++ STL use macros to compile exception constructs out when exceptions are disabled. So far as I know that’s the only way to do it.