Discussion:
valloric YCM [header definitions]
(too old to reply)
blubee blubeeme
2017-12-05 18:18:29 UTC
Permalink
I'm looking for where the u_int, u_long headers are defined?

for instance MOD_LOAD, UNLOAD, ENOTSUP along with u_int and u_long aren't
being picked up by libclang

module_t isn't being found either but I located that header file in
/usr/include/sys/module.h

snd_modevent(module_t mod, int type, void *data)
{

switch (type) {
case MOD_LOAD:
break;
case MOD_UNLOAD:
break;
default:
return (ENOTSUP);
break;
}
return 0;
}

Anyone here uses YCM?

Here's a verbose output of my global ycm_config. I hard coded the values to
test but still some headers like u_int, u_long and the above mentioned
MOD_* aren't being picked up.

Any ideas why?

'-std=c99',
'-x',
'c',
'-I',
'/usr/local/include',
'-I',
'/usr/include',
'-I',
'/usr/include/teken',
'-I',
'/usr/include/geom',
'-I',
'/usr/include/netgraph',
'-I',
'/usr/include/isofs',
'-I',
'/usr/include/net80211',
'-I',
'/usr/include/gssapi',
'-I',
'/usr/include/xlocale',
'-I',
'/usr/include/netpfil',
'-I',
'/usr/include/gcc',
'-I',
'/usr/include/bsnmp',
'-I',
'/usr/include/libxo',
'-I',
'/usr/include/ssp',
'-I',
'/usr/include/devdctl',
'-I',
'/usr/include/security',
'-I',
'/usr/include/crypto',
'-I',
'/usr/include/cam',
'-I',
'/usr/include/rdma',
'-I',
'/usr/include/infiniband',
'-I',
'/usr/include/rpcsvc',
'-I',
'/usr/include/atf-c',
'-I',
'/usr/include/netnatm',
'-I',
'/usr/include/ufs',
'-I',
'/usr/include/edit',
'-I',
'/usr/include/nfsserver',
'-I',
'/usr/include/netsmb',
'-I',
'/usr/include/gnu',
'-I',
'/usr/include/net',
'-I',
'/usr/include/private',
'-I',
'/usr/include/nfsclient',
'-I',
'/usr/include/openssl',
'-I',
'/usr/include/libmilter',
'-I',
'/usr/include/atf-c++',
'-I',
'/usr/include/netinet6',
'-I',
'/usr/include/x86',
'-I',
'/usr/include/dev',
'-I',
'/usr/include/bsm',
'-I',
'/usr/include/netipsec',
'-I',
'/usr/include/netinet',
'-I',
'/usr/include/krb5',
'-I',
'/usr/include/casper',
'-I',
'/usr/include/protocols',
'-I',
'/usr/include/lib80211',
'-I',
'/usr/include/arpa',
'-I',
'/usr/include/pcap',
'-I',
'/usr/include/nfs',
'-I',
'/usr/include/machine',
'-I',
'/usr/include/fs',
'-I',
'/usr/include/sys',
'-I',
'/usr/include/rpc',
'-I',
'/usr/include/kadm5',
'-I',
'/usr/include/vm',
'-I',
'/usr/include/c++',
'-I',
'/usr/include/lzma',
'-I',
'/sys',
'-I',
'/dev',
'-I',
'/usr/src',
Mark Linimon
2017-12-05 18:52:50 UTC
Permalink
Post by blubee blubeeme
I'm looking for where the u_int, u_long headers are defined?
Although it seems to be out-of-date, for something fundamental like this
you should be able to use the FXR instance:

http://fxr.watson.org/fxr/search

mcl
blubee blubeeme
2017-12-08 13:23:04 UTC
Permalink
Post by blubee blubeeme
I'm looking for where the u_int, u_long headers are defined?
for instance MOD_LOAD, UNLOAD, ENOTSUP along with u_int and u_long aren't
being picked up by libclang
module_t isn't being found either but I located that header file in
/usr/include/sys/module.h
snd_modevent(module_t mod, int type, void *data)
{
switch (type) {
break;
break;
return (ENOTSUP);
break;
}
return 0;
}
Anyone here uses YCM?
Here's a verbose output of my global ycm_config. I hard coded the values
to test but still some headers like u_int, u_long and the above mentioned
MOD_* aren't being picked up.
Any ideas why?
'-std=c99',
'-x',
'c',
'-I',
'/usr/local/include',
'-I',
'/usr/include',
'-I',
'/usr/include/teken',
'-I',
'/usr/include/geom',
'-I',
'/usr/include/netgraph',
'-I',
'/usr/include/isofs',
'-I',
'/usr/include/net80211',
'-I',
'/usr/include/gssapi',
'-I',
'/usr/include/xlocale',
'-I',
'/usr/include/netpfil',
'-I',
'/usr/include/gcc',
'-I',
'/usr/include/bsnmp',
'-I',
'/usr/include/libxo',
'-I',
'/usr/include/ssp',
'-I',
'/usr/include/devdctl',
'-I',
'/usr/include/security',
'-I',
'/usr/include/crypto',
'-I',
'/usr/include/cam',
'-I',
'/usr/include/rdma',
'-I',
'/usr/include/infiniband',
'-I',
'/usr/include/rpcsvc',
'-I',
'/usr/include/atf-c',
'-I',
'/usr/include/netnatm',
'-I',
'/usr/include/ufs',
'-I',
'/usr/include/edit',
'-I',
'/usr/include/nfsserver',
'-I',
'/usr/include/netsmb',
'-I',
'/usr/include/gnu',
'-I',
'/usr/include/net',
'-I',
'/usr/include/private',
'-I',
'/usr/include/nfsclient',
'-I',
'/usr/include/openssl',
'-I',
'/usr/include/libmilter',
'-I',
'/usr/include/atf-c++',
'-I',
'/usr/include/netinet6',
'-I',
'/usr/include/x86',
'-I',
'/usr/include/dev',
'-I',
'/usr/include/bsm',
'-I',
'/usr/include/netipsec',
'-I',
'/usr/include/netinet',
'-I',
'/usr/include/krb5',
'-I',
'/usr/include/casper',
'-I',
'/usr/include/protocols',
'-I',
'/usr/include/lib80211',
'-I',
'/usr/include/arpa',
'-I',
'/usr/include/pcap',
'-I',
'/usr/include/nfs',
'-I',
'/usr/include/machine',
'-I',
'/usr/include/fs',
'-I',
'/usr/include/sys',
'-I',
'/usr/include/rpc',
'-I',
'/usr/include/kadm5',
'-I',
'/usr/include/vm',
'-I',
'/usr/include/c++',
'-I',
'/usr/include/lzma',
'-I',
'/sys',
'-I',
'/dev',
'-I',
'/usr/src',
There's no one on this mailing list that uses YCM for their FreeBSD
development?
Gary Jennejohn
2017-12-08 14:02:48 UTC
Permalink
On Fri, 8 Dec 2017 21:23:04 +0800
Post by blubee blubeeme
I'm looking for where the u_int, u_long headers are defined?
These are not headers, they're typedefs.

These are defined in /usr/include/sys/types.h. This is the standard
loacation for globally used typedefs.
Post by blubee blubeeme
for instance MOD_LOAD, UNLOAD, ENOTSUP along with u_int and u_long aren't
being picked up by libclang
Errors like ENOTSUP are defined in /usr/include/sys/errno.h. This is
the standard location for globally used error codes.
Post by blubee blubeeme
module_t isn't being found either but I located that header file in
/usr/include/sys/module.h
snd_modevent(module_t mod, int type, void *data)
{
switch (type) {
break;
break;
return (ENOTSUP);
break;
}
return 0;
}
Anyone here uses YCM?
[snip]

Apparently not.

You seem to have all the usual include paths in the list. No idea
why it's not working.
--
Gary Jennejohn
Loading...