From 51f5da00d7e4937546e037f223307c85f8bf6655 Mon Sep 17 00:00:00 2001 From: Antoni Duda Date: Sat, 6 Jul 2024 11:25:37 +0200 Subject: [PATCH] Meta: Make YCM return flags as Python list As per YCM's own .ycm_extra_conf.py: ```python final_flags = list( compilation_info.compiler_flags_ ) ``` Before this change clangd would crash. --- .ycm_extra_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index d12c9923320..55e13f6ed33 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -71,7 +71,7 @@ def Settings(**kwargs): # noqa: N802 return {} return { - 'flags': compilation_info.compiler_flags_, + 'flags': list(compilation_info.compiler_flags_), 'include_paths_relative_to_dir': DIR_OF_THIS_SCRIPT, 'override_filename': filename }