<div dir="ltr">Hi Muhui,<div><br></div><div>I am not sure how much of these static analysis are already present in Clang, but I'm sure you can develop them here. I would look into the files and directories I mentioned in my previous mail. I can't say how hard it will be to implement. There is also a IRC channel, if you want a more flowing conversation about the subject.</div><div><br></div><div>Best regards,</div><div>Mads Ravn</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jan 1, 2017 at 9:06 AM Muhui Jiang <<a href="mailto:jiangmuhui@gmail.com">jiangmuhui@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi Mads<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks for your reply. Actually, I am completely new to clang. I know the theory of program analysis and I tried to find a powerful tool to carry out static analysis for my research. I need taint propagation,field sensitive, context sensitive,flow sensitive with implicit and explicit flows and pointer analysis. I think Clang should be available to develop such a tool. I am familiar with C, C++ linux programming. There are about one month left for me. Do you have any suggestions and do you  have any comments on the difficulty of implementation. Many Thanks</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Regards</div></div><div dir="ltr" class="gmail_msg"><div class="gmail_msg">Muhui</div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">2016-12-31 6:48 GMT+08:00 Mads Ravn <span dir="ltr" class="gmail_msg"><<a href="mailto:madsravn@gmail.com" class="gmail_msg" target="_blank">madsravn@gmail.com</a>></span>:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi Muhui,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">It looks like clang has some kind of taint analysis already. I don't know if it fits your purpose. But have a look at DivZeroChecker.cpp and GenericTaintChecker.cpp in clang. There are also other files.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">If these do not fit your purpose, I think you should be able to construct your own. If you have any questions about how to do this, please also elaborate on your experience with clang. It's much easier to guide you in the right direction, if we know your current level.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Best regards,</div><div class="gmail_msg">Mads Ravn</div></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg"><div class="m_-3628958544845335659h5 gmail_msg"><div dir="ltr" class="gmail_msg">On Fri, Dec 30, 2016 at 9:46 PM Muhui Jiang via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br class="gmail_msg"></div></div></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="m_-3628958544845335659h5 gmail_msg">Hi<div class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg"><br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg"></div><div class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">I am trying to use clang analyzer to conduct static taint analysis on the Linux kernel.  I am wondering whether clang has a static taint analysis framework or do I have to write a new one. If so, any suggestions or hints to write the static taint analysis tool. Many thanks </div><div class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg"><br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg"></div><div class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">Regards </div><div class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">Muhui</div></div></div>
_______________________________________________<br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">
cfe-dev mailing list<br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">
<a href="mailto:cfe-dev@lists.llvm.org" class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="m_-3628958544845335659m_6786224778097200963gmail_msg gmail_msg">
</blockquote></div>
</blockquote></div><br class="gmail_msg"></div>
</blockquote></div>