| Summary: | Code completion mis-parses //* resulting in not working | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Andrew Fuller <mactalla.obair> |
| Component: | Code completion | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | nalvarez |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | 4.0.1 | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andrew Fuller
2010-06-29 22:20:14 UTC
I can reproduce this in 4.1. I think the solution is simply to make KDevelop::clearComments clear //comments before /*comments*/. After clearing //comments, it won't find a "/*" anymore, and it won't wrongly think the cursor is inside a comment. I'll try this tomorrow. Git commit 1b51218cd6122230e40698934e7bcc311a92be07 by Olivier JG. Committed on 09/06/2011 at 04:31. Pushed by olivierjg into branch 'master'. Fix clearComments() to work with "//*" and "/*//*/" stuff that it used to choke on (See testClearComments in test_cppcodecompletion) BUG: 243200 M +30 -39 language/duchain/stringhelpers.cpp http://commits.kde.org/kdevplatform/1b51218cd6122230e40698934e7bcc311a92be07 |