This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING][PATCH] New plugin event when evaluating a constexpr call


On 05/06/2016 10:23 AM, Andres Tiraboschi wrote:
+static tree
+eval_call_plugin_callback (const constexpr_ctx *ctx, tree fun,
+			   bool lval, bool *non_constant_p, bool *overflow_p)

This function needs a comment.

-static void
+void
 cxx_bind_parameters_in_call (const constexpr_ctx *ctx, tree t,

Why expose this function? If you want the reduced forms of the arguments in your plugin, can't you call cxx_eval_constant_expression on them directly?

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]