如何在 CLion 中自动生成和更新 .h 文件的函数声明(原型)?

How to automatically generate and update function declarations (prototypes) for .h file in CLion?

如果我更改.c 文件中的函数定义,是否有任何方法可以让CLion 更新.h 文件中的声明?

复制粘贴是个重复性的工作..

这取决于我猜的变化。我总是使用 Refactor->Change Signature 来更新两个文件(源和 header)中的函数 return 类型、名称和参数。