From b49e28c541c56acec86d3470e9bd98a9e8f821df Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 2 Nov 2019 22:00:42 -0400 Subject: [PATCH] [c-c++] Add missing spacemacs//c-c++-setup-semantic function --- layers/+lang/c-c++/funcs.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layers/+lang/c-c++/funcs.el b/layers/+lang/c-c++/funcs.el index 78dc2ef30..951986fd8 100644 --- a/layers/+lang/c-c++/funcs.el +++ b/layers/+lang/c-c++/funcs.el @@ -68,6 +68,12 @@ (`lsp-ccls (spacemacs//c-c++-setup-clang-format)) (`lsp-cquery (spacemacs//c-c++-setup-clang-format)))) +(defun spacemacs//c-c++-setup-semantic () + "Conditionally setup semantic based on backend." + (pcase (spacemacs//c-c++-backend) + (`rtags (spacemacs//c-c++-setup-rtags-semantic)) + (`ycmd (spacemacs//c-c++-setup-ycmd-semantic)))) + ;; lsp