Cevelop / cevelop

The C++ IDE for professional developers
Eclipse Public License 2.0
5 stars 0 forks source link

Constificator: suggests const for void* #30

Open The-Compiler opened 4 years ago

The-Compiler commented 4 years ago

I'm using Archlinux, with Cevelop 1.12.1-201907081203 and Constificator 1.12.2.20190710144.

With this source code:

    static void operator delete(void * const ptr) noexcept {
    }

I'm getting:

image

Selecting "Add const-qualification" does nothing - it hides the error, but as soon as the line is visited again, it reappears.

Changing the type to void const * const ptr makes the error go away, but that makes no sense (and doesn't compile).