P
pingu219
Hi I've been looking for a lexer/parser which can handle C's
preprocessor directives for a refactoring tool I'm building but have
so far come up empty. I was wondering if anyone here has any
experience or advice about using GCC as a front-end for the purpose of
C code analysis or code transformations. To just use preprocessed code
for refactoring would really limit the utility of the tool somewhat,
not to mention it may result in some refactorings breaking the
external behaviour of the code which wouldn't be kosher.
preprocessor directives for a refactoring tool I'm building but have
so far come up empty. I was wondering if anyone here has any
experience or advice about using GCC as a front-end for the purpose of
C code analysis or code transformations. To just use preprocessed code
for refactoring would really limit the utility of the tool somewhat,
not to mention it may result in some refactorings breaking the
external behaviour of the code which wouldn't be kosher.