my/clang-include-filter should work now.
This commit is contained in:
parent
85e0062e0f
commit
d55aefe618
19
init.el
19
init.el
|
@ -561,7 +561,6 @@ With argument, do this that many times."
|
|||
)
|
||||
|
||||
;; Add #include directives for missing symbols.
|
||||
;; Broken: Can't pass build directory.
|
||||
(use-package clang-include-fixer
|
||||
:ensure nil ; Installed by clang.
|
||||
:if (executable-find "clang-include-fixer")
|
||||
|
@ -571,11 +570,21 @@ With argument, do this that many times."
|
|||
(add-to-list 'load-path (concat my/llvm-path "/share/clang"))
|
||||
:config
|
||||
(defun my/clang-find-all-symbols ()
|
||||
(shell-command (concat my/llvm-path
|
||||
"/share/clang/run-find-all-symbols.py -b "
|
||||
my/llvm-path "/bin/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-x M-i" . clang-include-fixer)
|
||||
("C-x M-i" . my/clang-include-fixer)
|
||||
)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;; Appearance ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user