<div dir="ltr">Hello,<div>With the below case I don't have the expected type :</div><div><br></div><div>main file (input file of the tool)
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">tests.h</span>
:</div><div><br></div>
<div style="float:left;white-space:pre;line-height:1;background:rgb(255,255,255)"><span class="gmail-sc9" style="color:rgb(128,64,0);font-family:"Courier New";font-size:10pt"><b>#include "external_lib.h"</b>
</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">namespace</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Test</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">void</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">fnc</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">const</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">external_lib</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">MyClass</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">&</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">a</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">);</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b>external_lib.h</b> (in include path):</div><div><br></div><div><div style="float:left;white-space:pre;line-height:1;background:rgb(255,255,255)"><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">namespace</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">external_lib</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">class</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">MyClass</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">};</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span></div>
<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>My code which returns a wrong result: </div><div><br></div><div><div style="float:left;white-space:pre;line-height:1;background:rgb(255,255,255)"><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">void</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">GetSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">const</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">QualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">&</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">,</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">SourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">&</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">)</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Decl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">*</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">decl</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">nullptr</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">switch</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getTypeClass</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">())</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Pointer</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">auto</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">pointee_type</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getPointeeType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">GetSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">pointee_type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">,</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">);</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Elaborated</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">auto</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">ET</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">ElaboratedType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">GetSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">ET</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getNamedType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(),</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">);</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">RValueReference</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">LValueReference</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc16" style="color:rgb(128,0,255);font-family:"Courier New";font-size:10pt">auto</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">dref</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">.</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getNonReferenceType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">GetSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">(</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">dref</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">,</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">);</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Record</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">RecordType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">decl</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">RecordType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Enum</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">EnumType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">decl</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">EnumType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">case</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Type</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">Typedef</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">srcLoc</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">TypedefType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getSourceRange</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">decl</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">=</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)"> </span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">qualType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getAs</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt"><</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">clang</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">::</span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">TypedefType</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">>()-></span><span class="gmail-sc11" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">getDecl</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">();</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">default</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">:</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">{</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc5" style="font-weight:bold;color:rgb(0,0,255);font-family:"Courier New";font-size:10pt">break</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">;</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span><span class="gmail-sc0" style="font-family:"Courier New";font-size:10pt;color:rgb(0,0,0)">
</span><span class="gmail-sc10" style="font-weight:bold;color:rgb(0,0,128);font-family:"Courier New";font-size:10pt">}</span></div>
<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Firtsly the code execute the L/RVAlueReference's case, but at the second call with type returned by <b>getNonReferenceType</b>() the line qualType->getTypeClass() returns clang::Type::Builtin instead of Elaborated.</div><div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">What's wrong with this case?</div><br></div><div>I haven't the issue if MyClass is declared in main file.</div><div><br></div><div><br></div><div>Many thanks for helps.</div><div><br></div><div></div></div>