cppIncludeGuard
cppIncludeGuard copied to clipboard
Auto Update Include Guard breaks C/C++ rename
When the setting "Auto Update Include Guard" is enabled, and I try to rename a C++ variable using the C/C++ tools extension, and if:
- the rename touches several files
- The rename cannot automatically choose which occurrences to change, but rather gives me the "Refactor preview" menu from which I pick and choose the instances
the rename fails with the message Cannot apply refactoring because '<name of file from where I clicked on the variable>' has changed in the meantime.. This happens even when none of the include guards have actually changed. Interestingly, the file name does show the white blob telling its been modified, but if I save it, nothing has changed.