https://bugs.kde.org/show_bug.cgi?id=372925
Bug ID: 372925 Summary: Code will never be executed helper solutions should be merged Product: kdevelop Version: 5.0.2 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: k...@avihay.baratz.org Target Milestone: --- Created attachment 102441 --> https://bugs.kde.org/attachment.cgi?id=102441&action=edit 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. -- You are receiving this mail because: You are watching all bug changes.