Sysprogs forums › Forums › VisualGDB › Issue with Clang
- This topic has 7 replies, 2 voices, and was last updated 7 years, 9 months ago by
support.
-
AuthorPosts
-
January 13, 2018 at 23:31 #13434
sidprice
ParticipantWhen I am typing in new code and maybe make an error, I go back to correct my mistake and the red box around the change (from Clang I think) won’t go away until I close and reopen the file.
Is there some other way to get rid of that red box. Image attached.
Sid
Attachments:
You must be logged in to view attached files.January 16, 2018 at 00:40 #13473support
KeymasterHi,
This looks like the renaming smart tag that should normally appear when you rename a function declaration (it would let you automatically adjust the references). If it’s triggering on a function call, most likely you did not include the header file with the function declaration, so Clang treats your call as an implicit declaration. Please include the correct header file in your sources to fix this.
January 17, 2018 at 00:01 #13486sidprice
ParticipantThanks for the suggestion but that cannot be the problem because it happens when I type a function for the first time. As I said if I make a mistake typing the function name, then go back to correct it the red box appears and will not go away until I close the file and reopen it. At the time there is no header file that has the function name.
Easy to reproduce:
- type “void aFuntion(void)
- Before hitting enter go back and correct the function name to be “aFunction”
- go to end of the line and hit enter
- Now you have red box until closing and reopening the file.
Sid
Sid
January 18, 2018 at 08:18 #13494support
KeymasterHi,
That would normally count as a valid attempt to rename the function. If this is annoying, we could easily add an option to disable this behavior.
January 18, 2018 at 16:14 #13501sidprice
ParticipantI would accept the explanation if the red box could be removed without having to close the file, that does not seem like proper behavior and it counter-productive when one is writing code. Clicking on the “light bulb” options does not remove it.
Sid
January 19, 2018 at 04:26 #13509support
KeymasterHi,
This is by design – VisualGDB normally keeps automatic rename smart tags for 3 last edits. You can disable this by setting this limit to 0 as shown below:

Please note that you would need to reopen your project after changing this setting.
Attachments:
You must be logged in to view attached files.January 27, 2018 at 01:30 #17256sidprice
ParticipantBy setting that option to zero I assume that renaming is now non-functional?
Sid
January 27, 2018 at 05:58 #17656support
KeymasterHi,
This will disable renaming triggered by editing the code. You will be still able to rename the functions and variables via Edit->Refactor->Rename (or by pressing Ctrl-R, R).
-
AuthorPosts
- You must be logged in to reply to this topic.