Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 7.0.0-beta2
-
None
Description
Have a class.h file add a memeber (float _f) to a class.
Request "Generate Getter and Setter" for _f (e.g. with Alt+Enter)
This will generate the getter and setter in the class.cpp file.
But both methods are marked: Out-of-line ...
The culprit is that the class.h file is not saved after the refactoring.
This in turn leads to a failure in error detection.
Switching back to the class.h file to save it removes the error indication in the class.cpp file.
Maybe save the class.h file automatically after refacoring.
ps: I can remember that I read in some blog that with the new clangd code model this might happen. But the experience is not nice to have error texts as result for an refactoring action.