Thanks Guoping,<br>This looks to be exactly what I need.<br>Thank you,<br>Joe<br> <br><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 11:22 AM, Guoping Long <span dir="ltr"><<a href="mailto:longguoping@gmail.com">longguoping@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, Josef<div><br></div><div> I just went through this process several weeks ago. Those tutorials are too old to suit new revisions of Clang.</div>
<div> Attached is an simple (runnable) program to experiment the uninitialized variables analysis (implemented in tools/clang/lib/Analysis/UninitializedValues.cpp). </div>
<div> Hope this helps.</div><div><br></div><div>-----</div><div>Guoping<br><br><div class="gmail_quote"><div><div></div><div class="h5">2011/10/11 josef maxim pohl <span dir="ltr"><<a href="mailto:josef.m.pohl@gmail.com" target="_blank">josef.m.pohl@gmail.com</a>></span><br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Hi there,<br><br>I have been banging my head against clang for a bit now
trying to get a sense of how a few things work. Hence I have a
complete beginner type question. <br><br>I am simply trying to construct an AST which I can use to do some source transformations. <br>
In trying to work through some of the examples and older tutorials I
have noticed that many use a preprocessor instance. With the recent
version of clang there seems to be a fundamental difference in the way a
preprocessor object is constructed. My first question is can anyone
tell me how to reconcile the old methodology with the new. (ie does
anyone have a decent example of this.) <br>
<br>The other approach to constructing an AST, it appears, is through
the construction of a CompilerInstance. However I have only seen this
used in plugin operations or in examples that are not constructing an
AST. Are there any good examples of this behavior (operation) in a stand
alone application? <br>
<br>Please feel free to correct my misguided notions of what is going on and I apologize for the complete beginner questions.<br>Thanks<br><font color="#888888">Josef<br>
</font><br></div></div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>