[cfe-dev] about function declaration

redder_0210 redder_0210 at yeah.net
Tue Oct 9 00:23:51 PDT 2012


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121009/e7c8ed2f/attachment.html>


More information about the cfe-dev mailing list