Emacs: Check for .clangd config file, update flycheck to C++20

This commit is contained in:
Riyyi
2022-08-06 12:54:21 +02:00
parent 68a2c75bbc
commit 140c723776
+4 -3
View File
@@ -191,7 +191,8 @@ Language Server Protocol.
"--clang-tidy" "--clang-tidy"
"--compile-commands-dir=build" "--compile-commands-dir=build"
"--log=error" "--log=error"
"--pch-storage=memory")) "--pch-storage=memory"
"--enable-config"))
(setq lsp-clients-lua-language-server-bin "/usr/bin/lua-language-server") (setq lsp-clients-lua-language-server-bin "/usr/bin/lua-language-server")
(setq lsp-clients-lua-language-server-install-dir "/usr/lib/lua-language-server/") (setq lsp-clients-lua-language-server-install-dir "/usr/lib/lua-language-server/")
(setq lsp-clients-lua-language-server-main-location "/usr/lib/lua-language-server/main.lua") (setq lsp-clients-lua-language-server-main-location "/usr/lib/lua-language-server/main.lua")
@@ -388,8 +389,8 @@ On the fly syntax checking.
shell-script-mode) shell-script-mode)
. flycheck-mode) . flycheck-mode)
:config :config
(setq flycheck-clang-language-standard "c++17") (setq flycheck-clang-language-standard "c++20")
(setq flycheck-gcc-language-standard "c++17")) (setq flycheck-gcc-language-standard "c++20"))
;; For .el files which are intended to be packages ;; For .el files which are intended to be packages
(use-package flycheck-package (use-package flycheck-package