weggli icon indicating copy to clipboard operation
weggli copied to clipboard

Normalize const in method params

Open bradphelan opened this issue 3 years ago • 0 comments

Is it possible that when we match

void foo(const int & $p)

it also matches

void foo(int const & $p)

The AST sees these as different but semantically they are the same. If programmers use different styles across the code base then matching can become fiddly as you need a different version for each possible combination.

bradphelan avatar Feb 09 '22 16:02 bradphelan