<div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 2, 2012 at 8:23 PM, Joao Matos <span dir="ltr"><<a href="mailto:ripzonetriton@gmail.com" target="_blank" class="cremed">ripzonetriton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: triton<br>
Date: Sun Sep 2 19:23:40 2012<br>
New Revision: 163099<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=163099&view=rev" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project?rev=163099&view=rev</a><br>
Log:<br>
Added a new cursor for SEHLeaveStmt to libclang.<br></blockquote><div><br></div><div>Please revert this, it was not fully reviewed on the list. It has zero tests and is a potential addition to the C API which we must never regress. I've CC-ed people who could actually review and approve this type of change.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Modified:<br>
cfe/trunk/include/clang-c/Index.h<br>
cfe/trunk/tools/libclang/CIndex.cpp<br>
cfe/trunk/tools/libclang/CXCursor.cpp<br>
<br>
Modified: cfe/trunk/include/clang-c/Index.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=163099&r1=163098&r2=163099&view=diff" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=163099&r1=163098&r2=163099&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/include/clang-c/Index.h (original)<br>
+++ cfe/trunk/include/clang-c/Index.h Sun Sep 2 19:23:40 2012<br>
@@ -1975,7 +1975,9 @@<br>
*/<br>
CXCursor_DeclStmt = 231,<br>
<br>
- CXCursor_LastStmt = CXCursor_DeclStmt,<br>
+ CXCursor_SEHLeaveStmt = 232,<br>
+<br>
+ CXCursor_LastStmt = CXCursor_SEHLeaveStmt,<br>
<br>
/**<br>
* \brief Cursor that represents the translation unit itself.<br>
<br>
Modified: cfe/trunk/tools/libclang/CIndex.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=163099&r1=163098&r2=163099&view=diff" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=163099&r1=163098&r2=163099&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/tools/libclang/CIndex.cpp (original)<br>
+++ cfe/trunk/tools/libclang/CIndex.cpp Sun Sep 2 19:23:40 2012<br>
@@ -3559,6 +3559,8 @@<br>
return createCXString("CXXForRangeStmt");<br>
case CXCursor_SEHTryStmt:<br>
return createCXString("SEHTryStmt");<br>
+ case CXCursor_SEHLeaveStmt:<br>
+ return createCXString("SEHLeaveStmt");<br>
case CXCursor_SEHExceptStmt:<br>
return createCXString("SEHExceptStmt");<br>
case CXCursor_SEHFinallyStmt:<br>
<br>
Modified: cfe/trunk/tools/libclang/CXCursor.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=163099&r1=163098&r2=163099&view=diff" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=163099&r1=163098&r2=163099&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/tools/libclang/CXCursor.cpp (original)<br>
+++ cfe/trunk/tools/libclang/CXCursor.cpp Sun Sep 2 19:23:40 2012<br>
@@ -197,6 +197,10 @@<br>
K = CXCursor_SEHTryStmt;<br>
break;<br>
<br>
+ case Stmt::SEHLeaveStmtClass:<br>
+ K = CXCursor_SEHLeaveStmt;<br>
+ break;<br>
+<br>
case Stmt::SEHExceptStmtClass:<br>
K = CXCursor_SEHExceptStmt;<br>
break;<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" class="cremed">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank" class="cremed">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>