Created attachment 102441 [details] semantic analysis tooltip for "code will never be executed" Attached: an image to demonstrate the situation How to reproduce: 1) open a new c++ project 2) add "if(false)" between "main" and print "hello world" 3) Hover over the semantic analysis marker (should be under the last << operator) The tool-tip suggests two solutions: S1) prepend "/* DISABLE CODE */ (" S2) append ")" preforming either solution creates a new code error (due to adding a '(' or ')' to the code). Preforming S1 and then S2 from the same tool-tip (since it doesn't disappear) results in S2's ')' inserted in the original position, changing the code and very possible insert an error to the code. Performing S2 and then S1 from the same tool-tip (since it doesn't disappear) solves the issue properly, since appending doesn't change the prepending position. I believe the solutions should be merged to one solution.
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!