<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114); "><span style="color: #000000">In Decl.h, </span><span style="color: rgb(0, 97, 65); ">FunctionDecl class:</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114); "><span style="color: #000000">  </span>/// \brief Determines whether this function is "main", which is the</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114); "><span style="color: #000000">  </span>/// entry point into an executable program.</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">  <span style="color: #931a68">bool</span> isMain() <span style="color: #931a68">const</span>;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Cheers,</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; ">Anna.</div><div><div>On Oct 9, 2012, at 12:23 AM, redder_0210 <<a href="mailto:redder_0210@yeah.net">redder_0210@yeah.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Dear all,<div><br></div><div>Considering the follwing codes:</div><div>//////////////////////////////////////////////////////////////////code begin</div><div>int fun(int i){</div><div>     return i++;</div><div>}</div><div>int main(){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>int j = 0;</div><div>        j = fun(j);</div><div>}</div><div>//////////////////////////////////////////////////////////////////code end</div><div><br></div><div>In the "StaticAnalyzer/AnalysisConsumer.cpp", there are two function declarations about the code. One function declaration is about the function ---"fun", and the other is about the function----"main".</div><div><br></div><div>Now the question is how to judge which function declaration is about the main function?</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></span></blockquote></div><br></body></html>