python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
clang DeclContext::getParent() not returning parent RecordDecl for nested structs
I'm using the following code get parent struct of a nested struct using clang libtooling.
bool VisitRecordDecl(clang::RecordDecl *RD) {
llvm::outs() <<"\n\tTrying to get parents of &quo...
Mah35h
Votes: 0
Answers: 0
`clang::PluginASTAction` with `clang::tooling::runToolOnCode` produce string output (for tests)?
With clang::tooling::runToolOnCode I can provide std::string input but I only get a bool output.
static const char
*const from = "#include <string.h>\n"
"int mai...
Samuel Marks
Votes: 0
Answers: 1
How VisitNamedDecl and VisitCXXRecordDecl are called by RecursiveASTVisitor?
In RecursiveASTVisitors doc, there is are no virtual methods of name VisitNamedDecl, VisitCXXRecordDecl ..etc.
So how they are called automatically called ?
LightSith
Votes: 0
Answers: 0
C++ Source-to-Source Transformation with Clang
I am working on a project for which I need to "combine" code distributed over multiple C++ files into one file. Due to the nature of the project, I only need one entry function (the function...
Sam
Votes: 0
Answers: 0