[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

Doug Gregor doug.gregor at gmail.com
Tue Oct 28 10:34:34 PDT 2008


On Tue, Oct 28, 2008 at 1:29 PM, Sebastian Redl
<sebastian.redl at getdesigned.at> wrote:
> 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?

It turns something like "(f)" into "f". Although... hrm... it should
never affect the type, so we shouldn't need it. Thanks!

  - Doug



More information about the cfe-commits mailing list