1 Star 0 Fork 1

XYX/stm32f4x_iap

forked from h3l/stm32f4x_iap 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.ycm_extra_conf.py 23.68 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
# 文件名称 : ycm_extra_conf.py
# 文件描述 : ycmd工作路径配置
# 编写人员 : HHL
# 修改人员 :
# 编修描述 : V0.01,时间2017.09.11
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
__version__ = '0.01'
__status__ = 'beta'
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
# 以下是作者原文
# https://github.com/Valloric/ycmd
#
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
# of the public at large and to the detriment of our heirs and
# successors. We intend this dedication to be an overt act of
# relinquishment in perpetuity of all present and future rights to this
# software under copyright law.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# For more information, please refer to <http://unlicense.org/>
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-Wc++98-compat',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
'-std=c99',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x', #I don't know if I need remove -x
'c',
"-I",
".",
#'-isystem',
#'../llvm/include',
#'-isystem',
#'../llvm/tools/clang/include',
#'-I./driver',
#'-I./debug',
#'-I./include',
# system includes
#'-isystem',
#'/usr/include',
'-isystem',
'/usr/lib/gcc/arm-none-eabi/4.8/include',
'-isystem',
'/usr/lib/gcc/arm-none-eabi/4.8/include-fixed',
'-isystem',
'/usr/lib/gcc/arm-none-eabi/4.8/../../../arm-none-eabi/include',
# auto write by make_ycmd_extra_con.py
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/bsp/stm32f40x',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/bsp/stm32f40x/drivers',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/bsp/stm32f40x/Libraries/CMSIS/Include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/bsp/stm32f40x/Libraries/CMSIS/ST/STM32F4xx/Include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/bsp/stm32f40x/Libraries/STM32F4xx_StdPeriph_Driver/inc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/CMSIS/Include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/CMSIS/RTOS',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/cplusplus',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/devfs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/elmfat',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/compress',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/compress/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/compress/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/crc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/fileio',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/hal',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/cyg/infra',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/include/linux',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/include/port',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/include/port/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/kernel/asm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/kernel/linux',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/kernel/linux/mtd',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/jffs2/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/net',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/net/arpa',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/net/netinet',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/net/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/nfs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/nfs/rpc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/ramfs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/romfs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/skeleton',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/uffs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/uffs/src/emu',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/uffs/src/inc/uffs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/uffs/src/platform/posix',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/filesystems/uffs/src/platform/win32',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/dfs/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/i2c',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/include/drivers',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/sensors',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/spi',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/spi/sfud/inc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/usb/usbdevice/class',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/drivers/usb/usbhost/class',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/cairo',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/espruino/gen',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/espruino/libs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/espruino/libs/math',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/espruino/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/jpeg',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/libpng',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/libz',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/lua/exlibs',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/lua/lua',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/lzo',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/nanopb',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/paho-mqtt/MQTTClient-C/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/paho-mqtt/MQTTClient-C/src/cc3200',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/paho-mqtt/MQTTClient-C/src/linux',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/paho-mqtt/MQTTPacket/samples',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/paho-mqtt/MQTTPacket/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/async',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/fts1',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/fts2',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/fts3',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/icu',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/ext/rtree',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/make',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/SQLiteLib',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/SQLiteLib/test',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/external/SQLite-3.8.1/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/finsh',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gdb',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gdb/libcpu/arm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gdb/libcpu/cortexm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/include/rtgui',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/include/rtgui/widgets',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/builds/amiga/include/config',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/builds/rt-thread',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/builds/vms',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/devel',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/include/config',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/include/internal',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/include/internal/services',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/autofit',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/base',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/bdf',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/cache',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/cff',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/cid',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/gxvalid',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/gzip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/lzw',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/otvalid',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/pcf',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/pfr',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/psaux',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/pshinter',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/psnames',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/raster',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/sfnt',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/smooth',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/truetype',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/type1',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/type42',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/freetype/src/winfonts',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/lodepng',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/libraries/tjpgd1a',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/gui/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/armlibc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/armlibc/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/dlib',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/dlib/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/libdl',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/minilibc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/minilibc/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/newlib',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/newlib/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/libc/pthreads',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/freemodbus/modbus/ascii',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/freemodbus/modbus/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/freemodbus/modbus/rtu',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/freemodbus/modbus/tcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/freemodbus/port',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/arch/include/arch',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/include/ipv4/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/include/ipv6/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/include/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/include/netif',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/netif',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/src/netif/ppp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/test/unit',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/test/unit/tcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.3.2/test/unit/udp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/arch/include/arch',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/ipv4/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/ipv6/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/netif',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/posix',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/include/posix/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/src/netif/ppp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/test/unit',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/test/unit/core',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/test/unit/etharp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/test/unit/tcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-1.4.1/test/unit/udp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/doc/doxygen',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/apps/httpd',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/apps/snmp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/arch/include/arch',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/lwip/apps',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/lwip/priv',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/lwip/prot',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/netif',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/netif/ppp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/netif/ppp/polarssl',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/posix',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/src/include/posix/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/core',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/dhcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/etharp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/mdns',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/tcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.0/test/unit/udp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/doc/doxygen',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/apps/httpd',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/apps/snmp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/arch/include/arch',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/lwip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/lwip/apps',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/lwip/priv',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/lwip/prot',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/netif',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/netif/ppp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/netif/ppp/polarssl',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/posix',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/src/include/posix/sys',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/fuzz',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/core',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/dhcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/etharp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/mdns',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/tcp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip-2.0.2/test/unit/udp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip_dhcpd',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/lwip_nat',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/dhcpc',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/hello-world',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/resolv',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/smtp',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/telnetd',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/webclient',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/apps/webserver',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/lib',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/rt-thread',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/uip',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/net/uip/unix',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/utilities/logtrace',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/utilities/ymodem',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/utilities/zmodem',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/vbus',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/vbus/share_hdr',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/components/vmm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/documentation/doxygen',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/examples/kernel',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/examples/module/tetris',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/examples/nanopb',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/examples/test',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/am335x',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/arm926',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/armv6',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/AT91SAM7S',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/cortex-r4',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/dm36x',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/lpc214x',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/lpc24xx',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/realview-a8-vmm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/s3c24x0',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/s3c44b0',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/sep4020',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/arm/zynq7000',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/avr32/uc3',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/blackfin/bf53x',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/mips/common',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/mips/loongson_1b',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/mips/loongson_1c',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/mips/xburst',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/ppc/common',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/ppc/ppc405',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/ppc/ppc405/include',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/ppc/ppc405/include/asm',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/risc-v/e310',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/risc-v/e310/sifive',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/risc-v/e310/sifive/devices',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/rx',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/sim/win32',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/unicore32/sep6200',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/libcpu/xilinx/microblaze',
'-I/mnt/hgfs/E/WORK/stm32f4x_iap/src',
]
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
#
# You can get CMake to generate this file for you by adding:
# set( CMAKE_EXPORT_COMPILE_COMMANDS 1 )
# to your CMakeLists.txt file.
#
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
if os.path.exists( compilation_database_folder ):
database = ycm_core.CompilationDatabase( compilation_database_folder )
else:
database = None
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
def DirectoryOfThisScript():
return os.path.dirname( os.path.abspath( __file__ ) )
def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
if not working_directory:
return list( flags )
new_flags = []
make_next_absolute = False
path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
for flag in flags:
new_flag = flag
if make_next_absolute:
make_next_absolute = False
if not flag.startswith( '/' ):
new_flag = os.path.join( working_directory, flag )
for path_flag in path_flags:
if flag == path_flag:
make_next_absolute = True
break
if flag.startswith( path_flag ):
path = flag[ len( path_flag ): ]
new_flag = path_flag + os.path.join( working_directory, path )
break
if new_flag:
new_flags.append( new_flag )
return new_flags
def IsHeaderFile( filename ):
extension = os.path.splitext( filename )[ 1 ]
return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
def GetCompilationInfoForFile( filename ):
# The compilation_commands.json file generated by CMake does not have entries
# for header files. So we do our best by asking the db for flags for a
# corresponding source file, if any. If one exists, the flags for that file
# should be good enough.
if IsHeaderFile( filename ):
basename = os.path.splitext( filename )[ 0 ]
for extension in SOURCE_EXTENSIONS:
replacement_file = basename + extension
if os.path.exists( replacement_file ):
compilation_info = database.GetCompilationInfoForFile(
replacement_file )
if compilation_info.compiler_flags_:
return compilation_info
return None
return database.GetCompilationInfoForFile( filename )
def FlagsForFile( filename, **kwargs ):
if database:
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
# python list, but a "list-like" StringVec object
compilation_info = GetCompilationInfoForFile( filename )
if not compilation_info:
return None
final_flags = MakeRelativePathsInFlagsAbsolute(
compilation_info.compiler_flags_,
compilation_info.compiler_working_dir_ )
# NOTE: This is just for YouCompleteMe; it's highly likely that your project
# does NOT need to remove the stdlib flag. DO NOT USE THIS IN YOUR
# ycm_extra_conf IF YOU'RE NOT 100% SURE YOU NEED IT.
#try:
# final_flags.remove( '-stdlib=libc++' )
#except ValueError:
# pass
else:
relative_to = DirectoryOfThisScript()
final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
return { 'flags': final_flags }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/XYX12306/stm32f4x_iap.git
git@gitee.com:XYX12306/stm32f4x_iap.git
XYX12306
stm32f4x_iap
stm32f4x_iap
master

搜索帮助