YouCompleteMe找不到一些标准库

时间:2019-11-10 17:43:41

标签: c++ vim youcompleteme

我从cppreference.com复制了一些#include<execution>使用的std :: reduce的代码,但是YouCompleteMe找不到执行,我可以使用clang -std=c++17 .\reduce_with_par.cpp -o reduce_with_par.exe编译并成功运行它,但是在vim ycmd找不到执行。 这是我的标签配置

set tags=./tags;/
set tags+=D:\\LLVM\\lib\\clang\\10.0.0\\tags
set tags+=C:\\Program\\\ Files\\\ (x86)\\Microsoft\\\ Visual\\\ Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.21.27702\\tags
set tags+=C:\\Program\\\ Files\\\ (x86)\\Windows\\\ Kits\\10\\Include\\10.0.17763.0\\tags

我已经运行clang++ -E -x c++17 - -v来检查搜索路径。而我的.ycm_extra_conf.py配置为

def Settings( **kwargs ):
  return {
          'flags': [
              '-Wall',
              '-Wextra',
              '-Werror',
              '-std=c++1z',
              '-x',
              'c++',
              '-isystem','D:/LLVM/lib/clang/10.0.0/include',
              '-isystem','C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/include',
              '-isystem','C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/atlmfc/include',
              '-isystem','C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/ucrt',
              '-isystem','C:/Program Files (x86)/Windows Kits/10/include/10.0.17763.0/shared',
              '-isystem','C:/Program Files (x86)/Windows Kits/10/include/10.0.17763.0/um',
              '-isystem','C:/Program Files (x86)/Windows Kits/10/include/10.0.17763.0/winrt'
              ],
  }

但是vim显示:this

我不知道如何解决。

0 个答案:

没有答案