Emacs: remove clang-include-fixer.

This commit is contained in:
tastytea 2020-04-27 03:03:24 +02:00
parent f5a3541247
commit 8f70497475

View File

@ -1,6 +1,6 @@
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-27T20:28:58+0100>
;; Time-stamp: <2020-04-27T03:03:05+0200>
;;; Commentary:
@ -118,38 +118,6 @@
(c++-mode . modern-c++-font-lock-mode)
)
;; Add #include directives for missing symbols.
(use-package clang-include-fixer
:straight nil ; Installed by clang.
:if (executable-find "clang-include-fixer")
:functions (clang-include-fixer--start clang-include-fixer--add-header)
:init
(defvar my/llvm-path
(concat (file-name-directory (executable-find "clang-include-fixer")) ".."))
(add-to-list 'load-path (concat my/llvm-path "/share/clang"))
:config
(defun my/clang-find-all-symbols ()
"Invokes run-find-all-symbols.py."
(interactive)
(shell-command (concat "cd " (my/get-builddir) " && "
my/llvm-path "/share/clang/run-find-all-symbols.py"
" -b " my/llvm-path "/bin/find-all-symbols")))
(defun my/clang-include-fixer ()
"Invoke clang-include-fixer with -p=build."
(interactive)
(message (concat "Calling the include fixer. "
"This might take some seconds. Please wait."))
(clang-include-fixer--start #'clang-include-fixer--add-header
"-output-headers"
(concat "-p=" (my/get-builddir))))
:bind
("C-c i" . my/clang-include-fixer)
)
(use-package find-file
:custom
(cc-search-directories '("." ; Set directories for ff-find-other-file.