[cfe-commits] r58306 - in /cfe/trunk: include/clang/AST/Expr.h include/clang/AST/ExprCXX.h include/clang/AST/StmtNodes.def include/clang/Analysis/PathSensitive/GRExprEngine.h lib/AST/Expr.cpp lib/Analysis/GRExprEngine.cpp lib/Sema/SemaDecl.cpp li

Sebastian Redl sebastian.redl at getdesigned.at
Tue Oct 28 10:29:39 PDT 2008


Doug Gregor wrote:
> This is the code we're looking at:
>
>   
>>> +    QualType CalleeType
>>> +      = dyn_cast<CallExpr>(this)->getCallee()->IgnoreParens()->getType();
>>>       
>
> The dyn_cast<> (now a cast<>) gives us a CallExpr*, on which we
> immediately call getCallee() to get an Expr*, then IgnoreParens() and
> getType(), which returns a QualType.
>   
Out of curiosity, what difference does the IgnoreParens() make?

Sebastian



More information about the cfe-commits mailing list