summaryrefslogtreecommitdiff
path: root/include/clang/Sema/Scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Sema/Scope.h')
-rw-r--r--include/clang/Sema/Scope.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/clang/Sema/Scope.h b/include/clang/Sema/Scope.h
index fa508cfc22..1329f97c2b 100644
--- a/include/clang/Sema/Scope.h
+++ b/include/clang/Sema/Scope.h
@@ -84,11 +84,18 @@ public:
/// TryScope - This is the scope of a C++ try statement.
TryScope = 0x1000,
+ /// CatchScope - This is the scope of a C++ catch statement.
+ CatchScope = 0x2000,
+
+ /// FnTryCatchScope - This is the scope for a function-level C++ try or
+ /// catch scope.
+ FnTryCatchScope = 0x4000,
+
/// FnTryScope - This is the scope of a function-level C++ try scope.
- FnTryScope = 0x3000,
+ FnTryScope = TryScope | FnTryCatchScope,
/// FnCatchScope - This is the scope of a function-level C++ catch scope.
- FnCatchScope = 0x4000
+ FnCatchScope = CatchScope | FnTryCatchScope
};
private:
/// The parent scope for this scope. This is null for the translation-unit