21#include "clang/AST/ASTContext.h"
22#include "clang/AST/Decl.h"
38 if (!isa<NamedDecl>(D))
41 const NamedDecl* ND = cast<NamedDecl>(D);
42 clang::PrintingPolicy policy(ND->getASTContext().getPrintingPolicy());
44 ND->getNameForDiagnostic(stream, policy,
false);
54 if (qt.isConstQualified()) {
58 if (qt->isArrayType()) {
60 qt = llvm::cast<clang::ArrayType>(qt)->getElementType();
63 else if (qt->isReferenceType()) {
65 qt = llvm::cast<clang::ReferenceType>(qt)->getPointeeType();
68 else if (qt->isPointerType()) {
70 if (qt.isConstQualified()) {
73 qt = llvm::cast<clang::PointerType>(qt)->getPointeeType();
76 else if (qt->isMemberPointerType()) {
77 qt = llvm::cast<clang::MemberPointerType>(qt)->getPointeeType();
82 if (qt->isBuiltinType()) {
85 if (qt.isConstQualified()) {
The file contains a base class of TCling*Info classes.
virtual ~TClingDeclInfo()
virtual const char * Name() const
virtual bool IsValid() const
long Property(long property, clang::QualType &qt) const
virtual const clang::Decl * GetDecl() const