Coverage Report

Created: 2020-02-25 14:32

/Users/buildslave/jenkins/workspace/coverage/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp
Line
Count
Source (jump to first uncovered line)
1
// -*- C++ -*-
2
//===----------------------------------------------------------------------===//
3
//
4
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
// See https://llvm.org/LICENSE.txt for license information.
6
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef _LIBCPPABI_VERSION
11
#error this header can only be used with libc++abi
12
#endif
13
14
namespace std {
15
16
0
bool uncaught_exception() _NOEXCEPT { return uncaught_exceptions() > 0; }
17
18
int uncaught_exceptions() _NOEXCEPT
19
0
{
20
0
# if _LIBCPPABI_VERSION > 1001
21
0
    return __cxa_uncaught_exceptions();
22
# else
23
    return __cxa_uncaught_exception() ? 1 : 0;
24
# endif
25
}
26
27
} // namespace std