<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - No completions in ctor-initializer after colon (':')" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24229&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=kDlssvFXiLaDWSKLW5Xqe3W_3TJMai1dn87l76HOGq4&s=PIJcbtIiujN1-FgCgxCDNh7EA2MJec9l1PPYhTZa_18&e=">24229</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No completions in ctor-initializer after colon (':')
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nikolai.kosjar@theqtcompany.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Observation #1: No completions are provided after the colon in the constructor
initializer, see below.

Observation #2: Adding "{}" before the comment does not help.

Expected completions would include the class members and the base class
constructors ("OVERLOAD:"). After a comma (',') in the list, only the remaining
members should be provided as completions.



---8<--- shell session start ---8<---

% cat members-in-meminitlist.cpp
struct Foo {
    Foo(int) :  // Complete before '/' of this comment

    int HELLO;
};

% clang -cc1 -code-completion-at members-in-meminitlist.cpp:2:16
members-in-meminitlist.cpp
members-in-meminitlist.cpp:4:14: error: expected '{'
    int HELLO;
             ^
1 error generated.
zsh: exit 1

---8<--- shell session end ---8<---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>