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

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

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes