Generating a compile command database