<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I saw this in some archives recently, but I didn't really see the question get answered.<div><br></div><div>I am trying to use the -ast-print-xml flag on clang front end, but on almost every file, I'm getting a crash after an assertion in Document.XML at line 51.</div><div><br></div><div>The command I am running is:</div><div>./clang -S -Xclang -ast-print-xml -o /tmp/output.xml MyClass.m</div><div><br></div><div>The assertion exactly is:</div><div>Assertion failed: (NodeStack.size() > 1 && "too much backtracking"), function toParent, file DocumentXML.cpp, line 51.</div><div><br></div><div>Is there a work-around until a fix can get in?</div><div><br></div><div>Thanks.</div><div><br></div><div>Kevin</div><div><br><div>
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><font class="Apple-style-span" face="'Myriad Set'">-------------------------------------------------</font></div><div><font class="Apple-style-span" face="MyriadSet-Bold"><b><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Kevin Cathey</span></font></b></font></div><div><font class="Apple-style-span" face="'Myriad Set'"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">Department of Computer Science - College of Engineering</span></font></font></div><div><font class="Apple-style-span" face="'Myriad Set'"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">University of Illinois Urbana Champaign</span></font></font></div><br class="Apple-interchange-newline"></span></span></div></span></div></span>
</div>
<br></div></body></html>