[cfe-dev] Assertion error when attempting to iterate over RecordDecl

Jeff Waller truthset at gmail.com
Wed Mar 4 15:15:46 PST 2015


A cross-post from cfe-users. I think there will be no luck
on that list.
=======================

I’m getting the failure:

void clang::RecordDecl::LoadFieldsFromExternalStorage() const: Assertion `hasExternalLexicalStorage() && Source && "No external storage?"' failed.
when trying to iterate over a RecordDecl and not sure even what’s going on let along how to deal with it:

I’m proceeding from the example in
http://clang.llvm.org/docs/LibASTMatchersTutorial.html

Here is some context:
https://gist.github.com/waTeim/8757662c445ce3b4084f

Thanks in advance for any help

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150304/cf5f2728/attachment.html>


More information about the cfe-dev mailing list