ExceptionSpecificationType.h (239462) | ExceptionSpecificationType.h (280031) |
---|---|
1//===--- ExceptionSpecificationType.h ---------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 12 unchanged lines hidden (view full) --- 21enum ExceptionSpecificationType { 22 EST_None, ///< no exception specification 23 EST_DynamicNone, ///< throw() 24 EST_Dynamic, ///< throw(T1, T2) 25 EST_MSAny, ///< Microsoft throw(...) extension 26 EST_BasicNoexcept, ///< noexcept 27 EST_ComputedNoexcept, ///< noexcept(expression) 28 EST_Unevaluated, ///< not evaluated yet, for special member function | 1//===--- ExceptionSpecificationType.h ---------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 12 unchanged lines hidden (view full) --- 21enum ExceptionSpecificationType { 22 EST_None, ///< no exception specification 23 EST_DynamicNone, ///< throw() 24 EST_Dynamic, ///< throw(T1, T2) 25 EST_MSAny, ///< Microsoft throw(...) extension 26 EST_BasicNoexcept, ///< noexcept 27 EST_ComputedNoexcept, ///< noexcept(expression) 28 EST_Unevaluated, ///< not evaluated yet, for special member function |
29 EST_Uninstantiated ///< not instantiated yet | 29 EST_Uninstantiated, ///< not instantiated yet 30 EST_Unparsed ///< not parsed yet |
30}; 31 32inline bool isDynamicExceptionSpec(ExceptionSpecificationType ESpecType) { 33 return ESpecType >= EST_DynamicNone && ESpecType <= EST_MSAny; 34} 35 36inline bool isNoexceptExceptionSpec(ExceptionSpecificationType ESpecType) { 37 return ESpecType == EST_BasicNoexcept || ESpecType == EST_ComputedNoexcept; --- 22 unchanged lines hidden --- | 31}; 32 33inline bool isDynamicExceptionSpec(ExceptionSpecificationType ESpecType) { 34 return ESpecType >= EST_DynamicNone && ESpecType <= EST_MSAny; 35} 36 37inline bool isNoexceptExceptionSpec(ExceptionSpecificationType ESpecType) { 38 return ESpecType == EST_BasicNoexcept || ESpecType == EST_ComputedNoexcept; --- 22 unchanged lines hidden --- |