Generate `.ccls` LSP file for Emacs

This commit is contained in:
Ivan Kravets committed 2019-09-03 15:31:33 +03:00
1 parent 2c242944c7
commit 7a07a2e63e
2 files changed
+24 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
% import re
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
% cc_stds = STD_RE.findall(cc_flags)
% cxx_stds = STD_RE.findall(cxx_flags)
%
%
clang
% if cc_stds:
{{"%c"}} -std=c{{ cc_stds[-1] }}
% end
% if cxx_stds:
{{"%cpp"}} -std=c++{{ cxx_stds[-1] }}
% end
% for include in includes:
-I{{ include }}
% end
% for define in defines:
-D{{ define }}
% end