Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Dec 2017 15:23:35 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   YouCompleteMe FreeBSD kernel headers
Message-ID:  <CALM2mEkgjZ2XdiRvuT1364zWOZ4XY_6KSAg9dTqREK3cQKjWAw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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?

Here's a brief output of the information in my .ycm file

'-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',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEkgjZ2XdiRvuT1364zWOZ4XY_6KSAg9dTqREK3cQKjWAw>