[cfe-dev] Superclass for CallExpr | CXXConstructExpr | ObjCMessageExpr

Artem Dergachev via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 2 12:16:23 PDT 2018


We seem to already have expression type in Expr and source location in 
Stmt. So i guess it's only about arguments.

On 7/2/18 11:09 AM, George Karpenkov via cfe-dev wrote:
> Hi,
>
> Quite a bit of code in the static analyzer is either duplicated or is using roundabout constructs
> to deal in the same way with calls of different type: CallExpr, CXXConstructExpr, ObjCMessageExpr.
>
> What would be the objections against introducing a very simple abstract superclass for those?
> Only a few methods would be required:
>
>   - arguments() and iterators over those
>   - return type
>   - source location
>
> George
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list