Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 6.0.1, Qt Creator 7.0.0-beta1
Description
Steps to reproduce:
- Enable Clangd
- Have a class header and it's cpp file
- Open header, add void foo() method
- Press Alt-Enter and select "Add definition in name.cpp"
- It switches to cpp file with a function definition
Expected result:
- doesn't show an error
Actual result:
- Shows an error in annotation for this function: "name.cpp:13:18: Out-of-line definition of 'foo' does not match any declaration in 'name'"
Additional info: After pressing Ctrl-Shift-S to save all opened files the error disappears