Open
Description
bool ClangASTVisitor::TraverseDecl(clang::Decl* decl)
{
if (decl == nullptr) {
return true;
}
if (auto* cxxRecordDecl = llvm::dyn_cast<clang::CXXRecordDecl>(decl);
IsTemplateCXXRecordUninstantiated(cxxRecordDecl)) {
return true;
}
const std::string& currFilename =
m_astContext->getSourceManager().getFilename(decl->getEndLoc()).str();
if (decl->getBeginLoc().isInvalid()) {
// How to obtain the file and line number information according to the decl node?
}
}