diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-06-25 14:30:46 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-07-03 09:01:03 +0200 |
| commit | 7e5635caf2d64c8be2706e86db23e3575ee50300 (patch) | |
| tree | 8eed5faf538128cbeaedbb29029c8be538f108a6 /gnu/packages/llvm.scm | |
| parent | e039b37c659886e8b847577e167bbd64cec91225 (diff) | |
gnu: Add emacs-clang-include-fixer.
* gnu/packages/llvm.scm (emacs-clang-include-fixer): New variable.
Merges guix/guix!9521
Diffstat (limited to 'gnu/packages/llvm.scm')
| -rw-r--r-- | gnu/packages/llvm.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index b44d99e03b0..2e5ed7f7944 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm | |||
| @@ -2352,6 +2352,35 @@ to fix its formatting. @code{clang-format} is a tool that formats | |||
| 2352 | C/C++/Obj-C code according to a set of style options, see | 2352 | C/C++/Obj-C code according to a set of style options, see |
| 2353 | @url{https://clang.llvm.org/docs/ClangFormatStyleOptions.html}."))) | 2353 | @url{https://clang.llvm.org/docs/ClangFormatStyleOptions.html}."))) |
| 2354 | 2354 | ||
| 2355 | (define-public emacs-clang-include-fixer | ||
| 2356 | (package | ||
| 2357 | (inherit clang) | ||
| 2358 | (name "emacs-clang-include-fixer") | ||
| 2359 | (build-system emacs-build-system) | ||
| 2360 | (inputs | ||
| 2361 | (list clang)) | ||
| 2362 | (propagated-inputs '()) | ||
| 2363 | (arguments | ||
| 2364 | (list | ||
| 2365 | #:lisp-directory "clang-tools-extra/clang-include-fixer/tool" | ||
| 2366 | #:phases | ||
| 2367 | #~(modify-phases %standard-phases | ||
| 2368 | (add-after 'unpack 'configure | ||
| 2369 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 2370 | (let ((clang-include-fixer | ||
| 2371 | (search-input-file inputs "/bin/clang-include-fixer"))) | ||
| 2372 | (emacs-substitute-variables "clang-include-fixer.el" | ||
| 2373 | ("clang-include-fixer-executable" | ||
| 2374 | clang-include-fixer)))))) | ||
| 2375 | #:test-command #~(list "emacs" "-Q" "--batch" | ||
| 2376 | "-l" "clang-include-fixer.el" | ||
| 2377 | "-l" "clang-include-fixer-test.el" | ||
| 2378 | "-f" "ert-run-tests-batch-and-exit"))) | ||
| 2379 | (synopsis "Emacs interface to @code{clang-include-fixer}") | ||
| 2380 | (description "This package provides an automated way of adding #include | ||
| 2381 | directives for missing symbols in one translation unit, see | ||
| 2382 | @url{http://clang.llvm.org/extra/clang-include-fixer.html}."))) | ||
| 2383 | |||
| 2355 | (define-public emacs-clang-rename | 2384 | (define-public emacs-clang-rename |
| 2356 | (package | 2385 | (package |
| 2357 | (inherit clang-19) | 2386 | (inherit clang-19) |
