[cfe-dev] Getting past error: member access into incomplete type
eric.schulte at gmx.com
Sat Sep 1 18:14:07 PDT 2012
I'm working on a small AST-manipulation tool built upon clang . I
had an implementation which worked but didn't deal well with included
headings. I've since re-written this using the Tooling interface,
however using the example code from  I run into the following "member
access into incomplete type" error on an ASTContext .
It looks like I could solve this error by stepping back to previous
versions of clang and llvm , but I'd prefer to fix this so that it
works with the current code and moving forward. The broken file is at,
Any suggestions would be greatly appreciated.
 $ make mutate-tool
clang++ -I/usr/local/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-rtti -c -o mutate-tool.o mutate-tool.cpp
mutate-tool.cpp:176:33: error: member access into incomplete type
/usr/local/include/clang/Basic/Builtins.h:29:9: note: forward
declaration of 'clang::ASTContext'
1 error generated.
make: *** [mutate-tool.o] Error 1
More information about the cfe-dev