-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:as-a-librarylibclang and C++ APIlibclang and C++ API
Description
| 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
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:as-a-librarylibclang and C++ APIlibclang and C++ API