aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Parse/DeclSpec.h
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-21 16:41:36 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-21 16:41:36 +0000
commita0fd8652f3302d0f39ed9849b521ee5b76597b0a (patch)
treeb2fd4be9481d12209c0590794585a0fc1469c427 /include/clang/Parse/DeclSpec.h
parentc994bb2b800d4aef4c42b5a58f33cb7816dbf7f0 (diff)
Parser support for C++ try-catch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/DeclSpec.h')
-rw-r--r--include/clang/Parse/DeclSpec.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h
index 4a97fd60ed..8b2033bfbe 100644
--- a/include/clang/Parse/DeclSpec.h
+++ b/include/clang/Parse/DeclSpec.h
@@ -646,7 +646,8 @@ public:
BlockContext, // Declaration within a block in a function.
ForContext, // Declaration within first part of a for loop.
ConditionContext, // Condition declaration in a C++ if/switch/while/for.
- TemplateParamContext // Within a template parameter list.
+ TemplateParamContext,// Within a template parameter list.
+ CXXCatchContext // C++ catch exception-declaration
};
/// DeclaratorKind - The kind of declarator this represents.
@@ -762,7 +763,7 @@ public:
/// parameter lists.
bool mayOmitIdentifier() const {
return Context == TypeNameContext || Context == PrototypeContext ||
- Context == TemplateParamContext;
+ Context == TemplateParamContext || Context == CXXCatchContext;
}
/// mayHaveIdentifier - Return true if the identifier is either optional or