diff options
Diffstat (limited to 'include/clang/Sema/Scope.h')
-rw-r--r-- | include/clang/Sema/Scope.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Sema/Scope.h b/include/clang/Sema/Scope.h index b78556e65a..201b2e7a40 100644 --- a/include/clang/Sema/Scope.h +++ b/include/clang/Sema/Scope.h @@ -82,7 +82,10 @@ public: SwitchScope = 0x800, /// TryScope - This is the scope of a C++ try statement. - TryScope = 0x1000 + TryScope = 0x1000, + + /// SEHTryScope - This is scope of a Microsoft SEH try statement. + SEHTryScope = 0x2000 }; private: /// The parent scope for this scope. This is null for the translation-unit @@ -292,6 +295,9 @@ public: /// \brief Determine whether this scope is a C++ 'try' block. bool isTryScope() const { return getFlags() & Scope::TryScope; } + /// \brief Determine whether this scope is a MS SEH 'try' block. + bool isSEHTryScope() const { return getFlags() & Scope::SEHTryScope; } + /// containedInPrototypeScope - Return true if this or a parent scope /// is a FunctionPrototypeScope. bool containedInPrototypeScope() const; |