<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I just committed a fix that should allow clang-wpa to build.<div><br><div><div>On Jan 17, 2011, at 8:29 AM, jignesh vasoya wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">jignesh vasoya</b> <span dir="ltr"><<a href="mailto:jigneshvasoya@gmail.com">jigneshvasoya@gmail.com</a>></span><br>
Date: Mon, Jan 17, 2011 at 9:47 PM<br>Subject: Re: [cfe-dev] problem building wpa example<br>To: arrowdodger <<a href="mailto:6yearold@gmail.com">6yearold@gmail.com</a>><br><br><br><br>Hi even after changing these directories its not compiling....<br>
Now i am getting these errors:<br><br>/.../clang//clang-wpa.cpp: In function ‘int main(int, char**)’:<br>/.../clang//clang-wpa.cpp:97: error: <b>no matching function for call to ‘clang::ASTUnit::LoadFromASTFile(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, llvm::IntrusiveRefCntPtr<clang::Diagnostic>&)’</b><br>
/InternalData/project/15jan2011/llvm/tools/clang/include/clang/Frontend/ASTUnit.h:509: note: candidates are: static clang::ASTUnit* clang::ASTUnit::LoadFromASTFile(const std::string&, llvm::IntrusiveRefCntPtr<clang::Diagnostic>, const clang::FileSystemOptions&, bool, std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const llvm::MemoryBuffer*>*, unsigned int, bool)<br>
/.../clang//clang-wpa.cpp:136: error: <b>‘AnalysisManager’ was not declared in this scope</b><br>/.../clang//clang-wpa.cpp:136: error: expected ‘;’ before ‘AMgr’<br>/.../clang//clang-wpa.cpp:146: error:<b> ‘TransferFuncs’ was not declared in this scope</b><br>
/.../clang//clang-wpa.cpp:146: error: ‘TF’ was not declared in this scope<br>/.../clang//clang-wpa.cpp:146: error: ‘AMgr’ was not declared in this scope<br>/.../clang//clang-wpa.cpp:147: error: <b>‘MakeCFRefCountTF’ was not declared in this scope</b><br>
/.../clang//clang-wpa.cpp:148: error: <b>‘ExprEngine’ was not declared in this scope</b><br>/.../clang//clang-wpa.cpp:148: error: expected ‘;’ before ‘Eng’<br>/.../clang//clang-wpa.cpp:150: error: <b>‘Eng’ was not declared in this scope</b><br>
/.../clang//clang-wpa.cpp:133: warning: unused variable ‘PP’<br>make[2]: *** [tools/clang/examples/wpa/CMakeFiles/clang-wpa.dir/clang-wpa.cpp.o] Error 1<br>make[1]: *** [tools/clang/examples/wpa/CMakeFiles/clang-wpa.dir/all] Error 2<br>
make: *** [all] Error 2<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Thu, Jan 13, 2011 at 3:08 PM, arrowdodger <span dir="ltr"><<a href="mailto:6yearold@gmail.com" target="_blank">6yearold@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;">
<div><div></div><div>On Thu, Jan 13, 2011 at 12:12 PM, jignesh vasoya <span dir="ltr"><<a href="mailto:jigneshvasoya@gmail.com" target="_blank">jigneshvasoya@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_quote">
<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>
Hi,<br>i have tried to build llvm-clang with examples but wpa(whole program analysis) is not getting build.<br>it says some of the header files are not found:<br>Those header files are :<br><div style="margin-left: 40px;">
#include "clang/GR/PathSensitive/AnalysisManager.h"<br>#include "clang/GR/PathSensitive/ExprEngine.h"<br>#include "clang/GR/PathSensitive/TransferFuncs.h"<br>#include "clang/GR/Checkers/LocalCheckers.h"<br clear="all">
</div><br><b style="color: rgb(0, 0, 153);">___________________________________________________________________________</b><br><span style="color: rgb(0, 0, 153);">-----------------------------------------------------------------------------------------------------------------------------</span><br>
<font color="#888888">
<b>Jignesh Vasoya<br>CSE - IIT MADRAS</b><br><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>Directory layout of clang static analyzers have been changed recently. Now it resides in StaticAnalyzer/ dir.<br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><b style="color: rgb(0, 0, 153);">___________________________________________________________________________</b><br><span style="color: rgb(0, 0, 153);">-----------------------------------------------------------------------------------------------------------------------------</span><br>
<b><div class="im">Jignesh Vasoya<br>CSE - IIT MADRAS<br></div>9962248684</b><br><br>
</div><br><br clear="all"><br>-- <br><b style="color: rgb(0, 0, 153);">___________________________________________________________________________</b><br><span style="color: rgb(0, 0, 153);">-----------------------------------------------------------------------------------------------------------------------------</span><br>
<b>Jignesh Vasoya<br>CSE - IIT MADRAS<br>9962248684</b><br><br>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></div></body></html>