Parsing/AST support for Structured Exception Handling
Patch authored by Sohail Somani. Provide parsing and AST support for Windows structured exception handling. llvm-svn: 130366
This commit is contained in:
@@ -112,7 +112,31 @@ namespace clang {
|
||||
P.BraceCount = BraceCount;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class PoisonSEHIdentifiersRAIIObject {
|
||||
PoisonIdentifierRAIIObject Ident_AbnormalTermination;
|
||||
PoisonIdentifierRAIIObject Ident_GetExceptionCode;
|
||||
PoisonIdentifierRAIIObject Ident_GetExceptionInfo;
|
||||
PoisonIdentifierRAIIObject Ident__abnormal_termination;
|
||||
PoisonIdentifierRAIIObject Ident__exception_code;
|
||||
PoisonIdentifierRAIIObject Ident__exception_info;
|
||||
PoisonIdentifierRAIIObject Ident___abnormal_termination;
|
||||
PoisonIdentifierRAIIObject Ident___exception_code;
|
||||
PoisonIdentifierRAIIObject Ident___exception_info;
|
||||
public:
|
||||
PoisonSEHIdentifiersRAIIObject(Parser &Self, bool NewValue)
|
||||
: Ident_AbnormalTermination(Self.Ident_AbnormalTermination, NewValue),
|
||||
Ident_GetExceptionCode(Self.Ident_GetExceptionCode, NewValue),
|
||||
Ident_GetExceptionInfo(Self.Ident_GetExceptionInfo, NewValue),
|
||||
Ident__abnormal_termination(Self.Ident__abnormal_termination, NewValue),
|
||||
Ident__exception_code(Self.Ident__exception_code, NewValue),
|
||||
Ident__exception_info(Self.Ident__exception_info, NewValue),
|
||||
Ident___abnormal_termination(Self.Ident___abnormal_termination, NewValue),
|
||||
Ident___exception_code(Self.Ident___exception_code, NewValue),
|
||||
Ident___exception_info(Self.Ident___exception_info, NewValue) {
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace clang
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user