//===--- ExceptionSpecificationType.h ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// /// \file /// Defines the ExceptionSpecificationType enumeration and various /// utility functions. /// //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_EXCEPTIONSPECIFICATIONTYPE_H #define LLVM_CLANG_BASIC_EXCEPTIONSPECIFICATIONTYPE_H namespace clang { /// The various types of exception specifications that exist in C++11. enum ExceptionSpecificationType { … }; inline bool isDynamicExceptionSpec(ExceptionSpecificationType ESpecType) { … } inline bool isComputedNoexcept(ExceptionSpecificationType ESpecType) { … } inline bool isNoexceptExceptionSpec(ExceptionSpecificationType ESpecType) { … } inline bool isUnresolvedExceptionSpec(ExceptionSpecificationType ESpecType) { … } inline bool isExplicitThrowExceptionSpec(ExceptionSpecificationType ESpecType) { … } /// Possible results from evaluation of a noexcept expression. enum CanThrowResult { … }; inline CanThrowResult mergeCanThrow(CanThrowResult CT1, CanThrowResult CT2) { … } } // end namespace clang #endif // LLVM_CLANG_BASIC_EXCEPTIONSPECIFICATIONTYPE_H