[x] I have searched YCM's issue tracker to find issues similar to the one I'm
about to report and couldn't find an answer to my problem. (Example Google
search.)
[x] If filing a bug report, I have included the output of vim --version.
[x] If filing a bug report, I have included the output of :YcmDebugInfo.
[x] If filing a bug report, I have attached the contents of the logfiles using
the :YcmToggleLogs command.
[x] If filing a bug report, I have included which OS (including specific OS
version) I am using.
[x] If filing a bug report, I have included a minimal test case that reproduces
my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
expected to happen and what actually happened.
[x] If filing a installation failure report, I have included the entire output
of install.py (or cmake/make/ninja) including its invocation
[x] I understand this is an open-source project staffed by volunteers and
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
[x] I understand my issue may be closed if it becomes obvious I didn't
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
Create a header file test.h
extern int someInt;
namespace Test {
static int testInt = 0;
}
Create a cpp file test.cpp
#include "test.h"
using namespace Test;
void main()
{
some // expect autocompletion `someInt` but got nothing
::some // got autocompletion `::someInt`
test // expect autocompletion `testInt` but got nothing
Test::test // got autocompletion `Test ::testInt`
}
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
test.h
test.cpp
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo