[llvm-bugs] [Bug 42646] New: Completion offers namespace items after Class::

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 17 00:16:55 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: nikolai.kosjar at qt.io
                CC: klimek at google.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190717/6c313bf9/attachment.html>


More information about the llvm-bugs mailing list