Sorry, I'm an idiot. I can't operate simple machinery, like emacs. The perfect compile_commands.json file was the one I was editing, but not the one I thought I was editing. Sorry for the spam.