Home | History | Annotate | Download | only in clang

Lines Matching full:clang

0 ;;; clang-rename.el --- Renames every occurrence of a symbol found at <offset>.  -*- lexical-binding: t; -*-
7 ;; To install clang-rename.el make sure the directory of this file is in your
10 ;; (require 'clang-rename)
16 (defgroup clang-rename nil
17 "Integration with clang-rename"
20 (defcustom clang-rename-binary "clang-rename"
21 "Path to clang-rename executable."
23 :group 'clang-rename)
26 (defun clang-rename (new-name)
27 "Rename all instances of the symbol at point to NEW-NAME using clang-rename."
30 ;; clang-rename should not be combined with other operations when undoing.
32 (let ((output-buffer (get-buffer-create "*clang-rename*")))
35 clang-rename-binary nil output-buffer nil
37 ;; clang-rename wants file (byte) offsets, not
39 (clang-rename--bufferpos-to-filepos
41 ;; part of the symbol, but clang-rename doesn?t.
55 (let ((message (clang-rename--format-message
56 "clang-rename failed with %s %s"
64 (defalias 'clang-rename--bufferpos-to-filepos
74 (defalias 'clang-rename--format-message
77 (provide 'clang-rename)
79 ;;; clang-rename.el ends here