reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/AST/DeclPrinter.cpp
  585   if (!D->getDescribedFunctionTemplate() &&
  586       !D->isFunctionTemplateSpecialization())
  587     prettyPrintPragmas(D);
  589   if (D->isFunctionTemplateSpecialization())
  591   else if (!D->getDescribedFunctionTemplate()) {
  592     for (unsigned I = 0, NumTemplateParams = D->getNumTemplateParameterLists();
  594       printTemplateParameters(D->getTemplateParameterList(I));
  597   CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D);
  598   CXXConversionDecl *ConversionDecl = dyn_cast<CXXConversionDecl>(D);
  599   CXXDeductionGuideDecl *GuideDecl = dyn_cast<CXXDeductionGuideDecl>(D);
  601     switch (D->getStorageClass()) {
  610     if (D->isInlineSpecified())  Out << "inline ";
  611     if (D->isVirtualAsWritten()) Out << "virtual ";
  612     if (D->isModulePrivate())    Out << "__module_private__ ";
  613     if (D->isConstexprSpecified() && !D->isExplicitlyDefaulted())
  613     if (D->isConstexprSpecified() && !D->isExplicitlyDefaulted())
  615     if (D->isConsteval())        Out << "consteval ";
  616     ExplicitSpecifier ExplicitSpec = ExplicitSpecifier::getFromDecl(D);
  626     Proto += D->getQualifiedNameAsString();
  629       if (const NestedNameSpecifier *NS = D->getQualifier()) {
  634     Proto += D->getNameInfo().getAsString();
  639   if (const TemplateArgumentList *TArgs = D->getTemplateSpecializationArgs()) {
  645   QualType Ty = D->getType();
  653     if (D->hasWrittenPrototype())
  660       for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) {
  662         ParamPrinter.VisitParmVarDecl(D->getParamDecl(i));
  666         if (D->getNumParams()) POut << ", ";
  669     } else if (D->doesThisDeclarationHaveABody() && !D->hasPrototype()) {
  669     } else if (D->doesThisDeclarationHaveABody() && !D->hasPrototype()) {
  670       for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) {
  673         Proto += D->getParamDecl(i)->getNameAsString();
  727     } else if (!ConversionDecl && !isa<CXXDestructorDecl>(D)) {
  742   prettyPrintAttributes(D);
  744   if (D->isPure())
  746   else if (D->isDeletedAsWritten())
  748   else if (D->isExplicitlyDefaulted())
  750   else if (D->doesThisDeclarationHaveABody()) {
  752       if (!D->hasPrototype() && D->getNumParams()) {
  752       if (!D->hasPrototype() && D->getNumParams()) {
  758         for (unsigned i = 0, e = D->getNumParams(); i != e; ++i) {
  760           ParamPrinter.VisitParmVarDecl(D->getParamDecl(i));
  767       if (D->getBody())
  768         D->getBody()->printPretty(Out, nullptr, SubPolicy, Indentation);
  770       if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))