[LLVMdev] Deleting unused C++ code
Корчагин Василий
vasiliy.korchagin at gmail.com
Sun Jul 3 13:25:38 PDT 2011
On Вс. 03 июля 2011 23:07:37, Øyvind Harboe wrote:
> Can llvm generate warnings for unused C++ code using global
> analysis?
>
> If I could use llvm to figure out what code I can delete in a 20
> year old app with millions of lines of code, this alone would defend
> spending time on making the app build with llvm, even if we don't
> actually run the code generated...
You can try Clang Static Analyzer (http://clang-analyzer.llvm.org/),
but I'm not sure that it has such analysis.
More information about the llvm-dev
mailing list