diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-08-20 22:13:24 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-20 22:13:24 +0000 |
commit | 79d50a04c060af23642cc1f290299defb3032405 (patch) | |
tree | d59b6bc24053ed72d8ad62c663e3a44beba16dca /clang/tools/clang-import-test | |
parent | 0e45df4c0ea6658f44c00c9af6303e81dbdc0886 (diff) | |
download | bcm5719-llvm-79d50a04c060af23642cc1f290299defb3032405.tar.gz bcm5719-llvm-79d50a04c060af23642cc1f290299defb3032405.zip |
[ASTImporter] Add test for C++'s try/catch statements.
Summary: Also enable exceptions in clang-import-test so that we can parse the test files.
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: a_sidorin, martong, cfe-commits
Differential Revision: https://reviews.llvm.org/D50978
llvm-svn: 340220
Diffstat (limited to 'clang/tools/clang-import-test')
-rw-r--r-- | clang/tools/clang-import-test/clang-import-test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/clang-import-test/clang-import-test.cpp b/clang/tools/clang-import-test/clang-import-test.cpp index ff14f62574e..f64f0f8042d 100644 --- a/clang/tools/clang-import-test/clang-import-test.cpp +++ b/clang/tools/clang-import-test/clang-import-test.cpp @@ -194,6 +194,8 @@ std::unique_ptr<CompilerInstance> BuildCompilerInstance() { Inv->getLangOpts()->ThreadsafeStatics = false; Inv->getLangOpts()->AccessControl = false; Inv->getLangOpts()->DollarIdents = true; + Inv->getLangOpts()->Exceptions = true; + Inv->getLangOpts()->CXXExceptions = true; // Needed for testing dynamic_cast. Inv->getLangOpts()->RTTI = true; Inv->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo); |