Hi Longyi,
Sorry for the delay in response. You are absolutely correct. The empty spaces caused the issues.
I removed the spaces from the path and the compile_commands.json file was created successfully (Hurray!!).
Now I'm facing another issue. When I'm using the command "oclint-json-compilation-database" I'm getting an error as follows:
$ oclint-json-compilation-database
Assertion failed: (SourceMgr && "SourceManager not set!"), function getSourceManager, file /Users/lqi/.jenkins/workspace/oclint-ci/oclint/build/llvm-install/include/clang/Basic/Diagnostic.h, line 370.
Have you ever came across such an error?
Thanks,
Hari