<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<br><br>I have a problem when trying to obtain the SourceRange of a BinaryOperator which RHS is a null pointer. Having something like "x = Null;", being x a pointer type variable, i can get the location of everything but the "Null", it seems like it doesn't exists. If I print the ast, the part referred to this is:<br><br><blockquote>`-BinaryOperator 0xc750768 <line:7:5, /usr/local/bin/../lib/clang/3.4/include/stddef.h:72:18> 'char *' lvalue '='<br>| |     |-MemberExpr 0xc750728 <prueba.cpp:7:5> 'char *' lvalue ->x 0xc7505b0<br>| |     | `-CXXThisExpr 0xc750718 <col:5> 'class X *' this<br>| |     `-ImplicitCastExpr 0xc750758 </usr/local/bin/../lib/clang/3.4/include/stddef.h:72:18> 'char *' <NullToPointer><br>| |       `-GNUNullExpr 0xc750748 <col:18> 'int'<br><br></blockquote>But i don't see it clearly. Can someone help me with this?<br><br>Thank you.<br>                                        </div></body>
</html>