[cfe-dev] wpa example compilation fails after an update to AnalysisManager class.

Talespin Kit talespin_kit at yahoo.com
Tue Feb 15 02:16:09 PST 2011


I have deleted the construction of AnalysisManager and trying to parse the ASTUnit using subclass of ASTConsumer to parse the top level decl as in the attached file. The example
compiles however i the parsing does not happen i get the following error while trying to parse the following code.

// hello.cpp

class BIGClassName
{
    int i;
public:
    int kk;
};

int main()
{
    BIGClassName a;
}



COMMAND GIVEN :- clang-wpa hello.ast  // hello.ast is constructed using clang(clang -emit-ast hello.cpp
clang-wpa: /home/talespin_kit/src/llvm/tools/clang/lib/Frontend/../../include/clang/Basic/SourceManager.h:273: const clang::SrcMgr::FileInfo& clang::SrcMgr::SLocEntry::getFile() const: Assertion `isFile() && "Not a file SLocEntry!"' failed.
Stack dump:
0.    <eof> parser at end of file
Aborted

--- On Tue, 2/15/11, Talespin Kit <talespin_kit at yahoo.com> wrote:

From: Talespin Kit <talespin_kit at yahoo.com>
Subject: Re: [cfe-dev] wpa example compilation fails after an update to AnalysisManager class.
To: kremenek at apple.com, "Douglas Gregor" <dgregor at apple.com>
Cc: "Argyrios Kyrtzidis" <kyrtzidis at apple.com>, cfe-dev at cs.uiuc.edu
Date: Tuesday, February 15, 2011, 8:21 AM

The example fails again after adding CheckerManger class in the commit
43dee220252ef0b42c5f8a3bb1eca97f84f2565f(http://llvm.org/git/clang.git).
commited on 2011-02-14 23:43:31.

--- On Fri, 2/11/11, Douglas Gregor <dgregor at apple.com> wrote:

From: Douglas Gregor <dgregor at apple.com>
Subject: Re: [cfe-dev] wpa example compilation fails after an update to AnalysisManager class.
To: kremenek at apple.com
Cc: "Argyrios Kyrtzidis" <kyrtzidis at apple.com>, cfe-dev at cs.uiuc.edu, "Talespin Kit" <talespin_kit at yahoo.com>
Date: Friday, February
 11, 2011, 1:32 AM


On Feb 10, 2011, at 5:24 PM, Ted Kremenek wrote:
I don't recall the original reason why it was disabled.  I'm willing to maintain these kinds of changes to it for now.  No buildbot currently detects when this example breaks.
We disabled it because it takes *forever* to link. The wasted developer time >> the utilize of compiling this example.
	- Doug
On Feb 10, 2011, at 3:07 PM, Argyrios Kyrtzidis wrote:
Should we re-enable
 building for wpa ?
On Feb 9, 2011, at 3:03 PM, Ted Kremenek wrote:
This should be fixed in r125235.
On Feb 9, 2011, at 2:11 AM, Talespin Kit wrote:
Hi all, 
 
       This is my first mail. The example clang/examples/wpa fails to compile with the llvm commit  git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125154 
91177308-0d34-0410-b5e6-96231b3b80d8 (http://llvm.org/git/llvm.git), because the 
 "class AnalysisManager" has been changed to takes an extra boolean argument.

Regards,
Talespin_kit




      _______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




      


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110215/3bd35323/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-wpa.cpp
Type: text/x-c++src
Size: 3747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110215/3bd35323/attachment.cpp>


More information about the cfe-dev mailing list