Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15073

Clang: Incomplete completions if function's curly brace is missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • Qt Creator 3.5.0
    • C/C++/Obj-C++ Support

    Description

      int myprecedingGlobal;
      int f() { my // COMPLETE HERE
      int mysucceedingGlobal;
      

      Completion for mysucceedingGlobal is not offered.

      Similar for incomplete member functions:

      int myprecedingGlobal;
      
      struct C {
          int myprecedingMember;
          int f() { my // COMPLETE HERE
          int mysucceedingMember;
      };
      
      int mysucceedingGlobal;
      

      All my* completions are offered (notably mysucceedingGlobal) , except for mysucceedingMember.

      Both cases work fine with the built-in codemodel

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes