ncm2 / ncm2-pyclang

Cached, fast C/C++ completion for ncm2
MIT License
45 stars 1 forks source link

goto-declaration does not work #16

Closed zhou13 closed 5 years ago

zhou13 commented 6 years ago
#include <iostream>

using namespace std;

int main() {
    cout << endl;
}

When I put my cursor on endl and type gd, I get

[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found                                      
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:38:10: fatal error: 'stdarg.h' file not found
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:93:38: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:102:38: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:109:63: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:118:4: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:123:5: error: unknown type name 'locale_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:126:6: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:126:18: error: unknown type name 'locale_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:135:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:136:42: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:145:9: error: unknown type name 'locale_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:150:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:151:5: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:151:17: error: unknown type name 'locale_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:187:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:191:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:222:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /usr/include/wchar.h:240:8: error: unknown type name 'size_t'
[ncm2_pyclang_proc@yarp] /tmp/1/1.cpp:6:13: error: reference to overloaded function could not be resolved; did you mean to call it?
Cannot find declaration

I am on ArchLinux. I did not use any compile_commands.json and clang++ compiles this code.

roxma commented 5 years ago

Please test the latest version.