Skip to content

Commit

Permalink
Add autoload cookies for clang-include-fixer lisp functions.
Browse files Browse the repository at this point in the history
Annotate all public functions with the autoload magic cookie so that
update-directory-autoloads will find them.

Patch by Brendan O'Dea.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@308290 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
r4nt committed Jul 18, 2017
1 parent 70a9752 commit 70a6a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include-fixer/tool/clang-include-fixer.el
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ This string is passed as -input argument to
(defface clang-include-fixer-highlight '((t :background "green"))
"Used for highlighting the symbol for which a header file is being added.")

;;;###autoload
(defun clang-include-fixer ()
"Invoke the Include Fixer to insert missing C++ headers."
(interactive)
Expand All @@ -66,6 +67,7 @@ This string is passed as -input argument to
(clang-include-fixer--start #'clang-include-fixer--add-header
"-output-headers"))

;;;###autoload
(defun clang-include-fixer-at-point ()
"Invoke the Clang include fixer for the symbol at point."
(interactive)
Expand All @@ -74,6 +76,7 @@ This string is passed as -input argument to
(user-error "No symbol at current location"))
(clang-include-fixer-from-symbol symbol)))

;;;###autoload
(defun clang-include-fixer-from-symbol (symbol)
"Invoke the Clang include fixer for the SYMBOL.
When called interactively, prompts the user for a symbol."
Expand Down

0 comments on commit 70a6a68

Please sign in to comment.