<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 11:37 AM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
On 20/05/2014 20:34, Manuel Klimek wrote:<div class=""><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Tue, May 20, 2014 at 7:19 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a> <mailto:<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>><u></u>> wrote:<br>

<br>
    Manuel, do you remember why this name was chosen? I seem to recall<br>
    thinking that the name was well-chosen.<br>
<br>
<br>
It's a DynTypedNode, because the type information is kept / available dynamically. ASTNode would suggest that there is a common interface for AST nodes, which there is not.<br>
</blockquote>
<br></div>
Well, QualType is a wrapper around Type structures that works similarly and we don't make the distinction there.<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What doesn't work for me is saying "DynTypedNode is an AST node". This feels wrong. DynTypedNode is more like a "smart reference".<br>
</blockquote>
<br></div>
How about ASTNodeRef? I don't have a strong feeling about ASTNode / ASTNodeRef or something along those lines, but DynTypedNode specifically doesn't feel right.<br>
<br>
The current name doesn't mean much outside ASTMatchers lingo whereas the functionality is fairly general and could be useful elsewhere.<br></blockquote><div><br></div><div>There was some speculation about extending use of DynTypedNode outside the ASTMatchers library <a href="http://reviews.llvm.org/D33?id=85#inline-386">http://reviews.llvm.org/D33?id=85#inline-386</a>; is there something in particular that you have in mind that you are trying to work towards?</div>
<div><br></div><div>-- Sean Silva</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Alp.<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">
<br>
Cheers,<br>
/Manuel<br>
<br>
<br>
    -- Sean Silva<br>
<br>
<br>
    On Sun, May 18, 2014 at 11:18 PM, Alp Toker <<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a><br></div><div class="">
    <mailto:<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>>> wrote:<br>
<br>
        This is always referred to as an AST node in documentation. By<br>
        wrapping Decls, Stmts and QualTypes it provides a generalised<br>
        way to reference AST nodes. And despite the name, DynTypedNode<br>
        doesn't have anything to do with dynamic types in the AST.<br>
<br>
        The attached patch renames the class and implementation to<br>
        ASTNode.<br>
<br>
        (Indeed the namespace "ast_type_traits" is equally confusing.<br>
        Presumably both are cases where implementation details have<br>
        leaked into the naming scheme?)<br>
<br>
        Alp.<br>
<br>
        --         <a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
        the browser experts<br>
<br>
<br>
        ______________________________<u></u>_________________<br>
        cfe-commits mailing list<br></div>
        <a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a> <mailto:<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.<u></u>edu</a>><br>
        <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-commits</a><br>
<br>
<br>
<br>
</blockquote><div class=""><div class="h5">
<br>
-- <br>
<a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
the browser experts<br>
<br>
</div></div></blockquote></div><br></div></div>