Remix.run Logo
Rubberducky1324 5 days ago

clang-tidy can often detect these. If the body of the function doesn't modify the value, for example.

But it needs to be conservative of course, in general you can't do this.