Skip to content

[REG 7 -> 9] Completion offers namespace items after Class:: #41991

@llvmbot

Description

@llvmbot
Bugzilla Link 42646
Resolution FIXED
Resolved on Jul 22, 2019 11:12
Version trunk
OS Linux
Blocks #41819
Reporter LLVM Bugzilla Contributor
CC @zmodem,@zygoloid,@sam-mccall
Fixed by commit(s) r366448, r366457

Extended Description

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions