diff options
author | Chih-Hsuan Yen | 2019-06-29 20:30:35 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2019-06-29 20:30:35 +0800 |
commit | 32b061a1df59d43b3c5177f31a1809fe1aac64b6 (patch) | |
tree | b738f874ae151facfead5d5296cb8779a64ff709 /clang_rsrc_dir.patch | |
parent | 7b4d35d82e05fcc134fc97c48a4e4cb71bb518e8 (diff) | |
download | aur-neovim-youcompleteme-core-git.tar.gz |
updates for clang and clangd completers
Diffstat (limited to 'clang_rsrc_dir.patch')
-rw-r--r-- | clang_rsrc_dir.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang_rsrc_dir.patch b/clang_rsrc_dir.patch new file mode 100644 index 000000000000..a7bb6b42a94c --- /dev/null +++ b/clang_rsrc_dir.patch @@ -0,0 +1,15 @@ +diff --git a/ycmd/utils.py b/ycmd/utils.py +index f1c777be..8819e980 100644 +--- a/ycmd/utils.py ++++ b/ycmd/utils.py +@@ -665,7 +665,9 @@ def ImportAndCheckCore(): + def GetClangResourceDir(): + resource_dir = os.path.join( LIBCLANG_DIR, 'clang' ) + for version in ListDirectory( resource_dir ): +- return os.path.join( resource_dir, version ) ++ candidate_path = os.path.join( resource_dir, version ) ++ if os.path.isdir( candidate_path ): ++ return candidate_path + + raise RuntimeError( 'Cannot find Clang resource directory.' ) + |