[PATCH] D41526: [libclang] Avoid builtin trap for __debug parser_crash pragma
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 21 15:16:13 PST 2017
arphaman created this revision.
arphaman added a reviewer: benlangmuir.
Herald added a subscriber: JDevlieghere.
This patch allows libclang to report a parser crash that's caused by `#pragma clang __debug parser_crash` without using the `LLVM_BUILTIN_TRAP`. Instead a new flag in PPOpts is used to let libclang know that a simulated crash has occurred. This flag allows clients to test that libclang can report a parser crash (CXError_Crash) when libclang is ran under a debugger that breaks on `LLVM_BUILTIN_TRAP`.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5909 bytes
Desc: not available
More information about the cfe-commits