<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 12:32 PM, Sterling Augustine via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px">[this time with correct cfe-dev address]</span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div>Clang (and Cling) Developers,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am working on a tool that takes produces a list of the fully-qualified names of the parameters in a function prototype. I need the fully qualified names because I am programmatically generating source code to call these functions, and I need to generate a function call with the correct types from the top-level namespace.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Unfortunately, getting the fully qualified name of random QualTypes is complicated.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">You can see just how complicated by looking at TypeName::GetFullyQualifiedName and it's callees in the Cling project:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="https://root.cern.ch/gitweb?p=root.git;a=blob;f=interpreter/cling/lib/Utils/AST.cpp" target="_blank">https://root.cern.ch/gitweb?p=root.git;a=blob;f=interpreter/cling/lib/Utils/AST.cpp</a><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Does it makes sense to upstream this functionality from cling into clang? <br></div></div></blockquote><div><br></div><div>Presumably clang needs to do this in places already (diagnostic messages, etc?)? Have you found any instances of that? Is there existing code doing that work that could be refactored into something reusable (that way it's being actually executed and tested within Clang's many codepaths, which is helpful to avoid bitrot, etc)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px"></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If there are issues with upstreaming, I could also write a new implementation.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Sterling</div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>