Query regarding MinimalAction class not found in scope for clang 2.8

Hi All,

MinimalAction was taken out because the rigid separation between
Parser and Sema was causing code to be more complicated than it needed
to be, and it didn't seem very useful in practice. What are you
trying to do?

On a side note, although the concepts are probably still mostly
accurate, I wouldn't trust any sample code that's over two years old;
clang has changed a lot since then.

-Eli

Hi Eli,
Thanks a lot for the reply. I am trying to write a small source to source translation application. Basically I want to change all invocations of a function say foo to now take a extra parameter which I want to pass and was investigating the utility of CLANG.

Thanks.
Vivek.

Hi Eli,
Thanks a lot for the reply. I am trying to write a small source to source
translation application. Basically I want to change all invocations of a
function say foo to now take a extra parameter which I want to pass and was
investigating the utility of CLANG.

Oh... that's pretty straightforward with the rewriter in clang;
RewriteObjC.cpp in the source tree should serve as an example of that
sort of ASTConsumer+ASTFrontendAction, and the clang-interpreter
example in examples/ in the source tree shows how to run an
FrontendAction. There isn't really a good tutorial at the moment...

-Eli

Eli Friedman <eli.friedman@...> writes:

> Hi Eli,
> Thanks a lot for the reply. I am trying to write a small source to source
> translation application. Basically I want to change all invocations of a
> function say foo to now take a extra parameter which I want to pass and was
> investigating the utility of CLANG.

Vivek did you manage to complete your source code for this? I am stuck with the
same problem as you.

-hg