<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Why wasn't there a file for function parameter? Function parameters *are* declared in some file, or am I missing something?<br>
<br></blockquote><div><br></div><div>They are declared in some file defined by the line markers; the file are not registered in the SourceManager as actual files, so getting the FileEntry will always fail, that's why I changed it to get the PresumedLoc.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">More general question is: how do we want USRs for function parameters to work, specifically should USR of the same param of different declarations be the same or different?<br></blockquote><div><br></div><div>That's a good point, this patch will generated different names for the same function param if a function is first defined then declared somewhere else. </div><div><br></div><div>I guess it should follow the USR generation pattern for FunctionDecls, what do you think? </div></div><div><br></div>-- <br><div class="m_-7839355572893146400gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>Mikhail Ramalho.</div></div></div>
</div></div>