Refactoring replaces uint16_t with unsigned int

已回答

When refactoring the signature of a function (Change signature...), if I enter uint16_t as a parameter type Clion inserts "unsigned int" instead: how can I prevent that?

Here is an example result:

virtual void handleVoltage(unsigned int currentVoltage, unsigned int minVoltage);

Thanks!

0

Hi! What CLion version do you use? I can't reproduce the issue on my side: when I do Refactor > Change Signature and add a new parameter "a" with a uint16_t type, CLion inserts it correctly ("uint16_t a"). Do I miss something? Is it possible to record a screencast or capture several sequential screenshots illustrating the issue?

0

Probably, the following issue in our tracker is related: https://youtrack.jetbrains.com/issue/CPP-10443. Feel free to comment or upvote.

0

请先登录再写评论。