lang/cc: remove naive cdb file check #1028

irony looks for compile_commands.json in several places, but
+cc/reload-compile-db would error out if there it didn't exist at the
project root.
This commit is contained in:
Henrik Lissner 2018-12-05 14:22:14 -05:00
parent 9d374b3bfb
commit 553cee5921
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -96,8 +96,6 @@ preceded by the opening brace or a comma (disregarding whitespace in between)."
(interactive)
(unless (memq major-mode '(c-mode c++-mode objc-mode))
(user-error "Not a C/C++/ObjC buffer"))
(unless (project-file-exists-p! "compile_commands.json")
(user-error "No compile_commands.json file"))
;; first rtag
(when (and (featurep 'rtags)
rtags-enabled