Added a new cursor for SEHLeaveStmt to libclang.

llvm-svn: 163099
This commit is contained in:
Joao Matos 2012-09-03 00:23:40 +00:00
parent 750f83a752
commit 102f85655f
3 changed files with 9 additions and 1 deletions

View File

@ -1975,7 +1975,9 @@ enum CXCursorKind {
*/
CXCursor_DeclStmt = 231,
CXCursor_LastStmt = CXCursor_DeclStmt,
CXCursor_SEHLeaveStmt = 232,
CXCursor_LastStmt = CXCursor_SEHLeaveStmt,
/**
* \brief Cursor that represents the translation unit itself.

View File

@ -3559,6 +3559,8 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) {
return createCXString("CXXForRangeStmt");
case CXCursor_SEHTryStmt:
return createCXString("SEHTryStmt");
case CXCursor_SEHLeaveStmt:
return createCXString("SEHLeaveStmt");
case CXCursor_SEHExceptStmt:
return createCXString("SEHExceptStmt");
case CXCursor_SEHFinallyStmt:

View File

@ -197,6 +197,10 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, CXTranslationUnit TU,
K = CXCursor_SEHTryStmt;
break;
case Stmt::SEHLeaveStmtClass:
K = CXCursor_SEHLeaveStmt;
break;
case Stmt::SEHExceptStmtClass:
K = CXCursor_SEHExceptStmt;
break;