alexmurray / flycheck-clang-analyzer

Integrate Clang Static Analyzer with flycheck for on-the-fly static analysis in Emacs
35 stars 5 forks source link

Use compilation database in project root #17

Open jsy1001 opened 3 years ago

jsy1001 commented 3 years ago

I am wondering if its possible to configure flycheck-clang-analyzer to pass arguments to clang to tell it to read compile_commands.json in the project root directory. Configuring static arguments seems straightforward, but I would ideally like to determine the project root directory on the fly (e.g. using projectile) and tell clang to look there for the compilation database. Any suggestions would be much appreciated.