[cfe-dev] about function declaration
Anna Zaks
ganna at apple.com
Tue Oct 9 10:28:24 PDT 2012
In Decl.h, FunctionDecl class:
/// \brief Determines whether this function is "main", which is the
/// entry point into an executable program.
bool isMain() const;
Cheers,
Anna.
On Oct 9, 2012, at 12:23 AM, redder_0210 <redder_0210 at yeah.net> wrote:
> Dear all,
>
> Considering the follwing codes:
> //////////////////////////////////////////////////////////////////code begin
> int fun(int i){
> return i++;
> }
> int main(){
> int j = 0;
> j = fun(j);
> }
> //////////////////////////////////////////////////////////////////code end
>
> 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".
>
> Now the question is how to judge which function declaration is about the main function?
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121009/883ab458/attachment.html>
More information about the cfe-dev
mailing list