Changed algorithm how to get compile options. (Now Ninja work.)

Now use clang's json database. And if you open or create source file not tracked by CMakeLists.txt, I'll hint you.