<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Clang Community:<br><br>A colleague and I need to use AST nodes as keys in a map. For example, having entered a few variable declaration nodes as keys, linking to associated meta-data, and now looking at a member function application node, with the variables as arguments, we'd like to be able to query the map to find the associated meta-data for those variable objects. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To this end, we need to implement hash and == for AST nodes. That's what's needed, e.g., by the C++ unordered map class. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">There's little available information as far as we can tell on this topic. Would you be so kind as to let us know the best way to do this, in your view? Is ODRHash the key to unlocking a solution? Are there other approaches you'd recommend?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Kevin Sullivan</div><div class="gmail_default" style="font-size:small">University of Virginia</div></div>