llvm-project/clang/test
James Y Knight fa87fa97fb Skip exception cleanups when the innermost scope is EHTerminateScope.
EHTerminateScope is used to implement C++ noexcept semantics. Per C++
[except.terminate], it is implemented-defined whether no, some, or all
cleanups are run prior to terminatation.

Therefore, the code to run cleanups on the way towards termination is
unnecessary, and may be omitted.

After this change, we will still run some cleanups: any cleanups in a
function called from the noexcept function will continue to run, while
those in the noexcept function itself will not.

(Commit attempt 2: check InnermostEHScope != stable_end() before accessing it.)

Differential Revision: https://reviews.llvm.org/D113620
2022-02-02 17:50:18 -05:00
..
APINotes
ARCMT [NFC][clang] Inclusive language: replace masterPort with mainPort 2021-11-18 11:51:06 -06:00
AST Reland (2) "[AST] Add RParen loc for decltype AutoTypeloc."" 2022-01-17 11:33:11 +01:00
ASTMerge [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
Analysis [analyzer] Add support for __attribute__((returns_nonnull)). 2022-02-02 11:46:52 -08:00
CXX [NFC][AIX]Disable failed tests due to aggressive byval alignment warning on AIX 2022-02-01 11:49:53 -05:00
ClangScanDeps [NFC][AIX]Disable new pcm tests on AIX 2022-01-28 12:39:09 -05:00
CodeCompletion [CodeCompletion][clangd] Clean __uglified parameter names in completion & hover 2022-01-26 15:51:17 +01:00
CodeGen [clang][Sparc] Fix __builtin_extract_return_addr etc. 2022-02-02 19:20:02 +01:00
CodeGenCUDA [CUDA][HIP] Do not treat host var address as constant in device compilation 2022-01-28 16:04:52 -05:00
CodeGenCUDASPIRV [CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV 2021-12-06 15:06:57 -08:00
CodeGenCXX Skip exception cleanups when the innermost scope is EHTerminateScope. 2022-02-02 17:50:18 -05:00
CodeGenCoroutines [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
CodeGenHIP [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
CodeGenObjC Do not crash when trying to encode a _BitInt type 2022-01-28 08:38:01 -05:00
CodeGenObjCXX [ObjC] Emit selector load right before msgSend call. 2022-01-26 20:52:54 -08:00
CodeGenOpenCL [OpenCL] Make generic addrspace optional for -fdeclare-opencl-builtins 2022-01-31 10:21:05 +00:00
CodeGenOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
CodeGenSYCL [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
Coverage
CoverageMapping [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
Driver Revert "[ASan] Not linking asan_static library for DSO." 2022-02-01 23:58:04 +00:00
FixIt [Sema] Warn about printf %n on Android and Fuchsia 2022-01-21 21:00:39 +00:00
Format
Frontend [OpenMP] Add a flag for embedding a file into the module 2022-01-31 15:56:00 -05:00
Headers Revert fad7e491a0 with fixes applied 2022-01-29 08:12:16 -05:00
Import
Index [clang] retain type sugar in auto / template argument deduction 2021-11-15 23:07:45 +01:00
Integration
InterfaceStubs [ifs] Use a tmp file instead of "-" 2022-01-21 11:19:37 -05:00
Interpreter
Layout
Lexer [Diagnostics] Don't drop a statically set NoWarningAsError flag during option processing 2022-01-10 16:38:01 -08:00
LibClang
Misc [ARM] Add Cortex-X1C Support for Clang and LLVM 2022-01-31 14:23:35 +00:00
Modules [NFC] Add tests for ODR checking of default template argument 2022-01-28 15:32:28 +08:00
OpenMP Skip exception cleanups when the innermost scope is EHTerminateScope. 2022-02-02 17:50:18 -05:00
PCH Reland (2) "[AST] Add RParen loc for decltype AutoTypeloc."" 2022-01-17 11:33:11 +01:00
Parser Fix a failed assertion on an invalid typename requirement 2022-01-18 11:59:08 -05:00
ParserSYCL
Preprocessor [clang] fix out of bounds access in an empty string when lexing a _Pragma with missing string token 2022-02-02 11:16:11 -08:00
Profile [NFC][AIX][clang] un-XFAIL gcc profile flag compat test 2022-01-28 11:18:55 -05:00
Refactor
Rewriter [NFC][Clang][test] Inclusive language: Remove and rephrase uses of sanity test/check in clang/test 2021-11-24 14:03:49 -05:00
Sema Fix -Wreserved-identifier in presence of system macro 2022-01-31 11:16:28 +01:00
SemaCUDA [CUDA][HIP] Do not treat host var address as constant in device compilation 2022-01-28 16:04:52 -05:00
SemaCXX Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly marked "static" 2022-01-31 17:34:51 -08:00
SemaObjC [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
SemaObjCXX Revert "[Sema] check PseudoObject when rebuilding CXXOperatorCallExpr in template instantiation" 2021-12-01 11:18:30 +01:00
SemaOpenCL [OpenCL] Test -fdeclare-opencl-builtins with CL3 and CLC++2021 2022-02-02 10:23:02 +00:00
SemaOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
SemaSYCL The methods visited for a special class must have an identifier. 2022-02-02 13:12:33 -08:00
SemaTemplate [clang] Don't typo-fix an expression in a SFINAE context. 2022-02-01 15:17:28 -05:00
TableGen [clang] Introduce support for disabling warnings in system macros 2022-01-12 08:18:19 +00:00
Templight [Templight] Don't display empty strings for names of unnamed template parameters 2022-01-24 16:37:11 +01:00
Tooling [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer 2022-01-14 10:05:47 +01:00
Unit
VFS [clang] support relative roots to vfs overlays 2022-01-19 10:13:06 -08:00
clang-rename
utils/update_cc_test_checks [IRGen] Do not overwrite existing attributes in CGCall. 2022-01-20 13:45:19 +00:00
.clang-format
CMakeLists.txt Reland - [CodeView] Emit S_OBJNAME record 2021-12-21 19:02:14 -05:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
lit.site.cfg.py.in [clang] Use usual lit pattern for CLANG_DEFAULT_PIE_ON_LINUX and LLVM_WITH_Z3 2021-12-14 21:44:56 -05:00
make_test_dirs.pl