lang/cc: +cc/reload-compile-commands => +cc/reload-compile-db #305

This commit is contained in:
Henrik Lissner 2017-12-27 00:11:09 -05:00
parent 869a85a46b
commit e833a16e04
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,8 +1,8 @@
;;; lang/cc/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +cc/reload-compile-commands (&optional force-p)
"Reload the current project's compile_commands.json file."
(defun +cc/reload-compile-db (&optional force-p)
"Reload the current project's JSON compilation database."
(interactive "P")
(unless (memq major-mode '(c-mode c++-mode objc-mode))
(user-error "Not a C/C++/ObjC buffer"))