zeyi2 wrote:

Hi, thanks for the feedback.

> Does it work with the following snippet as well?
> 
> ```c++
> double f(/*const*/ double *      x) { return *x; }
> double f(  const   double *const x) { return *x; }
> 
> void g(double x[2], double /*const*/ y[2]) { x[0] = y[0]; }
> void g(double x[2], double   const   y[2]) { x[0] = y[0]; }
> ```

These cases would work with this fix, I've added more tests in the regression 
test.

(Though I suspect there could be some FN with templates.. maybe out of scope of 
this PR)

https://github.com/llvm/llvm-project/pull/202490
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to