|
|
|
|
|
by zeugma
5154 days ago
|
|
If you do static analysis on Step 2 (ie on the AST) then you only need the Front-end of your compiler. Clang/LLVM is much more modular, library oriented.(which is why the Google engineer wanted to switch to it). You can just link to the needed front-end and do the static analysis without generating the LLVM bytecode. So yes, you could install a static-analyzer without the whole compiler. |
|
You can install a static analyzer without the whole compiler, but not gcc's static analyzer. I assumed "the static analyzer" that sp332 was talking about was specifically gcc's, not any generic static analyzer.