Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
906 stars 99 forks source link

Graceful fallback onto .clang-complete for headers? #478

Open graphicsMan opened 6 years ago

graphicsMan commented 6 years ago

Thanks for your work on irony-mode. After many years, this is the first reasonable completion setup I've had for C++ on emacs.

I've set up a compile_commands.json at the top of my project, and my source files seem to be working as intended with company-irony. I've yet to get my header files working unfortunately. I tried compdb to modify the compile_commands.json, and I've tried letting things fall back to .clang-complete. I'm unsure why the compdb doesn't work. It seems like the entry is found in the DB, but simple completion none-the-less fails.

Additionally, I suspect that the fallback is just never loading the .clang-complete file. If I remove the compile_commands.json file, I can't get any completion through headers or source files. Maybe I missed something in the README with respect to how to set that up, but I just can't find it.