<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have deleted the construction of AnalysisManager and trying to parse the ASTUnit using subclass of ASTConsumer to parse the top level decl as in the attached file. The example<br>compiles however i the parsing does not happen i get the following error while trying to parse the following code.<br><br>// hello.cpp<br><br>class BIGClassName<br>{<br>    int i;<br>public:<br>    int kk;<br>};<br><br>int main()<br>{<br>    BIGClassName a;<br>}<br><br><br><br><span style="font-weight: bold;">COMMAND GIVEN :- clang-wpa hello.ast  </span>// hello.ast is constructed using clang(clang -emit-ast hello.cpp<br><span style="font-weight: bold;">clang-wpa: /home/talespin_kit/src/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceManager.h:273: const clang::SrcMgr::FileInfo& clang::SrcMgr::SLocEntry::getFile()
 const: Assertion `isFile() && "Not a file SLocEntry!"' failed.</span><br style="font-weight: bold;"><span style="font-weight: bold;">Stack dump:</span><br style="font-weight: bold;"><span style="font-weight: bold;">0.    <eof> parser at end of file</span><br style="font-weight: bold;"><span style="font-weight: bold;">Aborted</span><br><br>--- On <b>Tue, 2/15/11, Talespin Kit <i><talespin_kit@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Talespin Kit <talespin_kit@yahoo.com><br>Subject: Re: [cfe-dev] wpa example compilation fails after an update to AnalysisManager class.<br>To: kremenek@apple.com, "Douglas Gregor" <dgregor@apple.com><br>Cc: "Argyrios Kyrtzidis" <kyrtzidis@apple.com>, cfe-dev@cs.uiuc.edu<br>Date: Tuesday, February 15, 2011, 8:21 AM<br><br><div id="yiv1167278637"><table border="0" cellpadding="0"
 cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">The example fails again after adding CheckerManger class in the commit<br>43dee220252ef0b42c5f8a3bb1eca97f84f2565f<a rel="nofollow" style="font-style: italic;" target="_blank" href="http://llvm.org/git/clang.git">(http://llvm.org/git/</a><a rel="nofollow" style="font-style: italic;" target="_blank" href="http://llvm.org/git/clang.git">clang.git)</a>.<br>commited on 2011-02-14 23:43:31.<br><br>--- On <b>Fri, 2/11/11, Douglas Gregor <i><dgregor@apple.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Douglas Gregor <dgregor@apple.com><br>Subject: Re: [cfe-dev] wpa example compilation fails after an update to AnalysisManager class.<br>To: kremenek@apple.com<br>Cc: "Argyrios Kyrtzidis" <kyrtzidis@apple.com>, cfe-dev@cs.uiuc.edu, "Talespin Kit" <talespin_kit@yahoo.com><br>Date: Friday,
 February
 11, 2011, 1:32 AM<br><br><div id="yiv1167278637"><br><div><div>On Feb 10, 2011, at 5:24 PM, Ted Kremenek wrote:</div><br class="yiv1167278637Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word;">I don't recall the original reason why it was disabled.  I'm willing to maintain these kinds of changes to it for now.  No buildbot currently detects when this example breaks.</div></blockquote><div><br></div>We disabled it because it takes *forever* to link. The wasted developer time >> the utilize of compiling this example.</div><div><br></div><div><span class="yiv1167278637Apple-tab-span" style="white-space: pre;">    </span>- Doug</div><div><br><blockquote type="cite"><div style="word-wrap: break-word;"><div><div><div>On Feb 10, 2011, at 3:07 PM, Argyrios Kyrtzidis wrote:</div><br class="yiv1167278637Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word;"><div>Should we re-enable
 building for wpa ?</div><br><div><div>On Feb 9, 2011, at 3:03 PM, Ted Kremenek wrote:</div><br class="yiv1167278637Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word;">This should be fixed in r125235.<div><br><div><div>On Feb 9, 2011, at 2:11 AM, Talespin Kit wrote:</div><br class="yiv1167278637Apple-interchange-newline"><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi all, <br> <br>       This is my first mail. The example clang/examples/wpa fails to compile with the llvm commit  git-svn-id: <a rel="nofollow" target="_blank" href="https://llvm.org/svn/llvm-project/cfe/trunk@125154">https://llvm.org/svn/llvm-project/cfe/trunk@125154</a> <br>91177308-0d34-0410-b5e6-96231b3b80d8 (<a rel="nofollow" target="_blank" href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>), because the 
 "class AnalysisManager" has been changed to takes an extra boolean argument.<br><br>Regards,<br>Talespin_kit<br><br></td></tr></tbody></table><br>

      _______________________________________________<br>cfe-dev mailing list<br><a rel="nofollow">cfe-dev@cs.uiuc.edu</a><br><a rel="nofollow" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote></div><br></div></div>_______________________________________________<br>cfe-dev mailing list<br><a rel="nofollow">cfe-dev@cs.uiuc.edu</a><br><a rel="nofollow" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote></div><br></div></blockquote></div><br></div></div>_______________________________________________<br>cfe-dev mailing list<br><a rel="nofollow">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></div></blockquote></td></tr></tbody></table><br>

      </div></blockquote></td></tr></table><br>