[LLVMbugs] [Bug 20973] New: Code completion of Template members is not working

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 17 00:08:01 PDT 2014


            Bug ID: 20973
           Summary: Code completion of Template members is not working
           Product: new-bugs
           Version: 3.4
          Hardware: Macintosh
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: schlaefer at eit.uni-kl.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider the following code example:

#include <vector>

template<class T>
class foo {
  void Init();

  struct bar {
    int foobar;
  bar one_bar;
  std::vector<foo<T>::bar> some_bars;

template<class T>
void foo<T>::Init(){
  one_bar.foobar = 0; // completion as expected
  some_bars.at(0).foobar = 0; // no completion neither for "at" nor for
  //        ^     ^ no completions for these positions!

The code completion for "some_bars" is not working at all while "one_bar"
behaves as expected.

Clang is called as follows:
clang -cc1 -x c++ -fsyntax-only -code-completion-at foo.cpp:20:21 foo.cpp

It does not give any output.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140917/3bbb608c/attachment.html>

More information about the llvm-bugs mailing list