<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>243200</bug_id>
          
          <creation_ts>2010-06-29 22:20:14 +0000</creation_ts>
          <short_desc>Code completion mis-parses //* resulting in not working</short_desc>
          <delta_ts>2011-06-09 04:34:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>Code completion</component>
          <version>git master</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>4.0.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Fuller">mactalla.obair</reporter>
          <assigned_to>kdevelop-bugs-null</assigned_to>
          <cc>nalvarez</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>984452</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Fuller">mactalla.obair</who>
    <bug_when>2010-06-29 22:20:14 +0000</bug_when>
    <thetext>Version:           SVN (using KDE 4.4.3) 
OS:                Linux

Code completion won&apos;t trigger after a comment beginning in //* until the scope changes.

Reproducible: Always

Steps to Reproduce:
Step 1: Open a c++ file and chose a place to use code completion.
Step 2: Type a bit or use ctrl-space to confirm the popup appears.
Step 3: Add a comment beginning in //* within the same scope.
Step 4: Try to trigger code completion after this comment (within the same scope).

Actual Results:  
Code completion won&apos;t trigger.

Expected Results:  
Code completion should trigger.

This is a valid one-line comment, but the code completion refuses to trigger.  I expect it&apos;s parsing it as a /* comment.

Severity is minor as it is easy to work around, but it is non-obvious for anyone who encounters it and feels like kdevelop is broken until my typo is discovered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1028699</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolás Alvarez">nalvarez</who>
    <bug_when>2010-10-07 04:12:14 +0000</bug_when>
    <thetext>I can reproduce this in 4.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1028700</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolás Alvarez">nalvarez</who>
    <bug_when>2010-10-07 05:12:34 +0000</bug_when>
    <thetext>I think the solution is simply to make KDevelop::clearComments clear //comments before /*comments*/. After clearing //comments, it won&apos;t find a &quot;/*&quot; anymore, and it won&apos;t wrongly think the cursor is inside a comment.

I&apos;ll try this tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129130</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier.jg">olivier.jg</who>
    <bug_when>2011-06-09 04:34:40 +0000</bug_when>
    <thetext>Git commit 1b51218cd6122230e40698934e7bcc311a92be07 by Olivier JG.
Committed on 09/06/2011 at 04:31.
Pushed by olivierjg into branch &apos;master&apos;.

Fix clearComments() to work with &quot;//*&quot; and &quot;/*//*/&quot; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>