mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user