[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`.
Repository:
rC Clang
https://reviews.llvm.org/D41526
Files:
include/clang/Frontend/ASTUnit.h
include/clang/Lex/PreprocessorOptions.h
lib/Frontend/ASTUnit.cpp
lib/Parse/ParseDecl.cpp
tools/libclang/CIndex.cpp
unittests/libclang/LibclangTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41526.127959.patch
Type: text/x-patch
Size: 5909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171221/35037612/attachment.bin>
More information about the cfe-commits
mailing list