I have 2 function prototypes<br> <br>extern  void  myTestFunc(double a, int c);<br>extern "C" void  myFunc2(int a, int c);<br><br>When i tried to get entire sourceRange for both,  with FunctionDecl object ,<br>as <br>
FunctionDecl *FD;<br>sourceLocation sBegin = FD->getLocStart();<br>sourceLocation sEnd = FD->getLocEnd();<br>sourceRange.setBegin(sBegin);<br>sourceRange.setEnd(sEnd);<br><br>The sourceRange for 1st is getting as :<br>
extern  void  myTestFunc(double a, int c)<br><br>where as for second<br>void  myFunc2(int a, int c)<br><br>Issue, is I want to get entire sourceRange for second. i.e <br>extern "C" void  myFunc2(int a, int c)<br>
<br><br>So, how to get entire SourceRange?<br><br><br clear="all">Suhas Limaye. <br>Pune.<br>