dubreuia/intellij-plugin-save-actions

Used imports are deleted in CLion (unsupported product)

dubreuia opened this issue · 0 comments

The code

#include <math.h>

int main() {
    double test = fmin(-0.0, 0.0);
    return static_cast<int>(test);
}

is cleaned as

int main() {
    double test = fmin(-0.0, 0.0);
    return static_cast<int>(test);
}

which makes the compilation fail because fmin is used.