From 553cee592104fcb14d42cd4c4f71bd74c808d6b8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 5 Dec 2018 14:22:14 -0500 Subject: [PATCH] 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. --- modules/lang/cc/autoload.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/lang/cc/autoload.el b/modules/lang/cc/autoload.el index 060177709..cadfe4153 100644 --- a/modules/lang/cc/autoload.el +++ b/modules/lang/cc/autoload.el @@ -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