<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 11, 2010, at 6:51 AM, Douglas Gregor wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br>On Nov 11, 2010, at 2:05 AM, Ted Kremenek wrote:<br><br><blockquote type="cite">Author: kremenek<br></blockquote><blockquote type="cite">Date: Thu Nov 11 02:05:23 2010<br></blockquote><blockquote type="cite">New Revision: 118783<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=118783&view=rev">http://llvm.org/viewvc/llvm-project?rev=118783&view=rev</a><br></blockquote><blockquote type="cite">Log:<br></blockquote><blockquote type="cite">Annotate tokens in a separate thread to avoid blowing out stack space.  While the CursorVisitor<br></blockquote><blockquote type="cite">is gradually becoming more data recursive, AnnotateTokensVisitor does its own recursive call<br></blockquote><blockquote type="cite">within the visitor that can still blow out the stack.  This can potentially be reworked to avoid this,<br></blockquote><blockquote type="cite">but for now just do token annotation on a separate thread.<br></blockquote><br>In this case, clang_getCursor() is another candidate for execution on a separate thread.<br><br><span class="Apple-tab-span" style="white-space: pre; ">    </span>- Doug<br></span></blockquote></div><br><div>clang_getCursor() should be fine as is.  The function GetCursorVisitor() doesn't actually call 'VisitChildren()' directly, which is what AnnotateTokensVisitor does (which circumvents the data-recursive traversal).</div></body></html>