Skip to content

Auto Update Include Guard breaks C/C++ rename #144

@timoscs

Description

@timoscs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions