https://bugs.llvm.org/show_bug.cgi?id=42646

            Bug ID: 42646
           Summary: Completion offers namespace items after Class::
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangb...@nondot.org
          Reporter: nikolai.kos...@qt.io
                CC: kli...@google.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

This is a regression from clang-7 to clang-8/trunk.

### Test with clang 8/trunk
~ % F=/tmp/reproducer.cpp
~ % cat -n $F            
     1  namespace std {};
     2  class Class { static void foo(); };
     3  Class::
     4  
~ % CINDEXTEST_EDITING=1
/d2/llvm/trunk/vanilla/builds/DebugShared/bin/c-index-test
-code-completion-at=$F:3:8 $F | grep std
Namespace:{TypedText std}{Text ::} (75)

### Test with clang-7
~ % CINDEXTEST_EDITING=1 /usr/bin/c-index-test-7 -code-completion-at=$F:3:8 $F
| grep std                                   
zsh: done       CINDEXTEST_EDITING=1 /usr/bin/c-index-test-7
-code-completion-at=$F:3:8 $F | 
zsh: exit 1     grep --color=auto std


Works as expected without "CINDEXTEST_EDITING=1". However, for an IDE the
effect of CINDEXTEST_EDITING=1 is crucial (preamble generation + caching
completions).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to