diff options
author | Erich Keane <erich.keane@intel.com> | 2019-05-30 17:31:54 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-05-30 17:31:54 +0000 |
commit | b4651bd20f476f639700b73cd01850fb957de987 (patch) | |
tree | e53dc29bf0f5857ce2d1a1b76c17ef3484709524 /tools | |
parent | 0995aac68ee0d35648cd8a7577689a8bec29be6d (diff) | |
download | clang-b4651bd20f476f639700b73cd01850fb957de987.tar.gz |
Add Attribute NoThrow as an Exception Specifier Type
In response to https://bugs.llvm.org/show_bug.cgi?id=33235, it became
clear that the current mechanism of hacking through checks for the
exception specification of a function gets confused really quickly when
there are alternate exception specifiers.
This patch introcues EST_NoThrow, which is the equivilent of
EST_noexcept when caused by EST_noThrow. The existing implementation is
left in place to cover functions with no FunctionProtoType.
Differential Revision: https://reviews.llvm.org/D62435
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libclang/CXType.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libclang/CXType.cpp b/tools/libclang/CXType.cpp index c7ac572382..acecf87d0c 100644 --- a/tools/libclang/CXType.cpp +++ b/tools/libclang/CXType.cpp @@ -742,6 +742,8 @@ getExternalExceptionSpecificationKind(ExceptionSpecificationType EST) { return CXCursor_ExceptionSpecificationKind_MSAny; case EST_BasicNoexcept: return CXCursor_ExceptionSpecificationKind_BasicNoexcept; + case EST_NoThrow: + return CXCursor_ExceptionSpecificationKind_NoThrow; case EST_NoexceptFalse: case EST_NoexceptTrue: case EST_DependentNoexcept: |