From owner-freebsd-questions@freebsd.org Sat Dec 9 07:23:37 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A7B6E8198F for ; Sat, 9 Dec 2017 07:23:37 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2E2F7A907 for ; Sat, 9 Dec 2017 07:23:36 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id x28so8301553ita.0 for ; Fri, 08 Dec 2017 23:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=a+xLfV4Ys5LvVQQDNnLRAXYcniFzLbqFWWD0gjMNlbU=; b=JUtLW18Vk7gS6M76wCG/j8AaXrUNpYXNj/qfVBSOGItT8LNDhptzVsn+rLw8m1DXpU swWfm6MCBBdwjP7InylpRkbTV5zjqxtMM+GIXMVgygiqFddVroLShy+wpC9jVNOMwDsr hpp9LTT3c56y1CPMUQ6oXMafXvVGqEooQzHTnjN1LFdLWs5bT1q+VEUbCTeyedKDTmQ2 itWqrMtwBGn1XxWC1A+zQ8+sUmPBoiGIl2Kq5ZfHwEfrG9WbGcRIDHSDfgUKKyK8Xca+ yQcSfOzzZVWLipa/vEIilLsHTyqmXn12pCqKF32hn1k7ZonZ98Yo3gc3Hn6PkpwqRqIn +fIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a+xLfV4Ys5LvVQQDNnLRAXYcniFzLbqFWWD0gjMNlbU=; b=O/Y5kbOQBXdqmDal61BID3eEVyUPr31dkgLp1IAeaAZC5mA6l5igTyNqR7icIp0k2r ONyZGxgOUmQwYyoRazvV06QHdWctIHs7/aHfrhoYmVwwTX7DcPm9eDc8nh5vOPj971V+ kaWdpNoF/aPAXUh4mzqVBqRq7NVcpETC++ErNMUqQJ7N1KYKs+WM7b2Ygo1hgE2AuYHH uzmrcM2yPVGhJaS0mbidrJWgKYSwbvDNxUuZcZCj//wlAJPYM3x+t1srdYBHlDo7y6A9 zFrO82oR8Owc4frgIORPtQxpnl/Ue2jWtr+QcjhDOAA+RVtIlUKcTTMO8LwKC436rjAc YWtw== X-Gm-Message-State: AKGB3mKr4TBOp8Ioqj8MFMEanIAS8GUT1AbasBaUQlO8dVtlqM6SI1OE bCzSjv7Lbcf0BsH0d3+xJoF0JlTjMOoLSiK3RPb5iA== X-Google-Smtp-Source: AGs4zMY8v7pgb6jAiFpxpkBjDEQGlorDVEYTIe5gjC9xGLJ9threX4pG23qw7x6BNVD29HGONXk3M2CmKkxu3K835Ns= X-Received: by 10.36.116.135 with SMTP id o129mr8358956itc.119.1512804215831; Fri, 08 Dec 2017 23:23:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Fri, 8 Dec 2017 23:23:35 -0800 (PST) From: blubee blubeeme Date: Sat, 9 Dec 2017 15:23:35 +0800 Message-ID: Subject: YouCompleteMe FreeBSD kernel headers To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 07:23:37 -0000 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',