我想在 clang libtooling 中使用 try catch 语句,但默认情况下它采用编译选项作为-fno-rtti and -fno-exceptions
如果我在 clang libtooling 中使用 try-catch 语句,则会抛出错误消息
samplecode
try
{
}
catch(std::exception &e)
{
}
Cannot Use try with Exception Disabled
.
如何为 clang libtooling 程序启用 try catch?