Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Eclipse CDT parser outside of CDT

Is it possible to use Eclipse's CDT parser outside of Eclipse, to analyze C sources off line?

like image 306
mikebloch Avatar asked May 24 '12 12:05

mikebloch


2 Answers

Yes, it is possible.

I work in a project called CPAchecker which does exactly that.

like image 121
Philipp Wendler Avatar answered Sep 19 '22 00:09

Philipp Wendler


If you are not constraint to use Eclipse CDT I recommend you to use clang/llvm. It is a fairly young compiler and code analyzer, but it has good performance.

[1] http://clang.llvm.org/ [2] http://en.wikipedia.org/wiki/Clang

like image 42
Victor Dodon Avatar answered Sep 19 '22 00:09

Victor Dodon