<br><br><div class="gmail_quote">On Fri, Jan 6, 2012 at 12:31 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Fri, Jan 6, 2012 at 12:18 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:<br>
> I'm not sure if it's what the op was asking, but shouldn't the ast have<br>
> some node in the (uninstantiated template) that represents the<br>
> dependent call to too? Yet it seems printing the ast didn't show 'foo'<br>
> anywhere in the template by the looks of it. Is it perhaps just<br>
> something that's not printed by the ast pretty printing?<br>
<br>
</div>From -ast-dump:<br>
<br>
void bar() (CompoundStmt 0x7fce3b058e28 <<stdin>:13:1, line:15:1><br>
  (CallExpr 0x7fce3b058e00 <line:14:4, col:12> '<dependent type>'<br>
    (MemberExpr 0x7fce3b058dc8 <col:4, col:8> '<bound member function<br>
type>' .foo 0x7fce3b0583a0<br>
      (MemberExpr 0x7fce3b058d90 <col:4> 'struct A' lvalue ->m_a 0x7fce3b058920<br>
        (CXXThisExpr 0x7fce3b058d78 <col:4> 'B<T> *' this)))))<br>
<span><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>I may be running into problems/limitations with the python bindings to the library.  When I dump an AST using that interface, I get nodes which seem to map onto what you're showing here, but they have spelling "None" and displayname of an empty string.<br>
<br>In the non-templated case they have spelling "None" but displayname "foo", so I am able to find them.<br><br>Do you know what libclang call returns the text above which contained the string "foo"?  It seems neither clang_getCursorSpelling nor clang_getCursorDisplayname will in this case.<br>
<br>Thanks again,<br>Bob<br><br><br><br><br><br>
<br>