emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git
commit aa110b9817d07de4a6ef5fe66a46e3b620ddc3a7
parent 6045083d843b8135ba01d73ff649ff738dc54dee
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu,  4 Mar 2021 19:51:38 -0600

Update C++ linter settings

Diffstat:
MREADME.org | 21+++++----------------
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/README.org b/README.org
@@ -649,16 +649,16 @@ Install =flycheck=.
 #+END_SRC
 
 *** Set C++ Standard
-Use =c++17= as the C++ standard. =cppcheck= only support C++ 14 so far however.
+Use =c++20= as the C++ standard.
 #+BEGIN_SRC emacs-lisp
   (add-hook 'c++-mode-hook
             (lambda () (progn
-                         (setq flycheck-cppcheck-standards '("c++14"))
-                         (setq flycheck-clang-language-standard "c++17")
-                         (setq flycheck-gcc-language-standard "c++17"))))
+                         (setq flycheck-cppcheck-standards '("c++20"))
+                         (setq flycheck-clang-language-standard "c++20")
+                         (setq flycheck-gcc-language-standard "c++20"))))
 #+END_SRC
 
-*** Set Google C++ Syntax Checker
+*** DISABLED Set Google C++ Syntax Checker
 **** Install =flycheck-google-cpplint=
 Add Google C++ Style checker for =flycheck= (Now deprecated, using local copy).
 On Arch Linux, if using AUR package =cpplint=, need to modify command
@@ -687,17 +687,6 @@ Set various parameters for the checker.
    '(flycheck-googlelint-linelength "80"))
 #+END_SRC
 
-*** Set Clang Analyzer
-**** Install =flycheck-clang-analyzer=
-#+BEGIN_SRC emacs-lisp
-  (use-package flycheck-clang-analyzer
-    :ensure t
-    :init
-    (with-eval-after-load 'flycheck
-      (require 'flycheck-clang-analyzer)
-      (flycheck-clang-analyzer-setup)))
-#+END_SRC
-
 *** Proselint
 A linter for prose, checks grammar and style errors. Setting from [[https://unconj.ca/blog/linting-prose-in-emacs.html][here]].