Home | History | Annotate | Download | only in AST

Lines Matching refs:Const

88     explicit TypePrinter(const PrintingPolicy &Policy)
91 void print(const Type *ty, Qualifiers qs, raw_ostream &OS,
95 static bool canPrefixQualifiers(const Type *T, bool &NeedARCStrongQualifier);
97 void printTypeSpec(const NamedDecl *D, raw_ostream &OS);
99 void printBefore(const Type *ty, Qualifiers qs, raw_ostream &OS);
101 void printAfter(const Type *ty, Qualifiers qs, raw_ostream &OS);
107 void print##CLASS##Before(const CLASS##Type *T, raw_ostream &OS); \
108 void print##CLASS##After(const CLASS##Type *T, raw_ostream &OS);
115 if (TypeQuals & Qualifiers::Const) {
116 OS << "const";
144 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS,
158 bool TypePrinter::canPrefixQualifiers(const Type *T,
161 // so that we get "const int" instead of "int const", but we can't do this if
163 // "int * const", printing "const int *" is different. Only do this when the
168 if (const AutoType *AT = dyn_cast<AutoType>(T))
170 if (const SubstTemplateTypeParmType *Subst
240 if (const SubstTemplateTypeParmType *Subst =
249 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) {
302 void TypePrinter::printAfter(const Type *T, Qualifiers Quals, raw_ostream &OS) {
312 void TypePrinter::printBuiltinBefore(const BuiltinType *T, raw_ostream &OS) {
316 void TypePrinter::printBuiltinAfter(const BuiltinType *T, raw_ostream &OS) { }
318 void TypePrinter::printComplexBefore(const ComplexType *T, raw_ostream &OS) {
322 void TypePrinter::printComplexAfter(const ComplexType *T, raw_ostream &OS) {
326 void TypePrinter::printPointerBefore(const PointerType *T, raw_ostream &OS) {
336 void TypePrinter::printPointerAfter(const PointerType *T, raw_ostream &OS) {
346 void TypePrinter::printBlockPointerBefore(const BlockPointerType *T,
352 void TypePrinter::printBlockPointerAfter(const BlockPointerType *T,
358 void TypePrinter::printLValueReferenceBefore(const LValueReferenceType *T,
369 void TypePrinter::printLValueReferenceAfter(const LValueReferenceType *T,
380 void TypePrinter::printRValueReferenceBefore(const RValueReferenceType *T,
391 void TypePrinter::printRValueReferenceAfter(const RValueReferenceType *T,
402 void TypePrinter::printMemberPointerBefore(const MemberPointerType *T,
418 void TypePrinter::printMemberPointerAfter(const MemberPointerType *T,
429 void TypePrinter::printConstantArrayBefore(const ConstantArrayType *T,
435 void TypePrinter::printConstantArrayAfter(const ConstantArrayType *T,
450 void TypePrinter::printIncompleteArrayBefore(const IncompleteArrayType *T,
456 void TypePrinter::printIncompleteArrayAfter(const IncompleteArrayType *T,
462 void TypePrinter::printVariableArrayBefore(const VariableArrayType *T,
468 void TypePrinter::printVariableArrayAfter(const VariableArrayType *T,
488 void TypePrinter::printAdjustedBefore(const AdjustedType *T, raw_ostream &OS) {
493 void TypePrinter::printAdjustedAfter(const AdjustedType *T, raw_ostream &OS) {
497 void TypePrinter::printDecayedBefore(const DecayedType *T, raw_ostream &OS) {
501 void TypePrinter::printDecayedAfter(const DecayedType *T, raw_ostream &OS) {
506 const DependentSizedArrayType *T,
513 const DependentSizedArrayType *T,
523 const DependentSizedExtVectorType *T,
528 const DependentSizedExtVectorType *T,
537 void TypePrinter::printVectorBefore(const VectorType *T, raw_ostream &OS) {
573 void TypePrinter::printVectorAfter(const VectorType *T, raw_ostream &OS) {
577 void TypePrinter::printExtVectorBefore(const ExtVectorType *T,
581 void TypePrinter::printExtVectorAfter(const ExtVectorType *T, raw_ostream &OS) {
590 const PrintingPolicy &Policy)
591 const {
616 void TypePrinter::printFunctionProtoBefore(const FunctionProtoType *T,
631 void TypePrinter::printFunctionProtoAfter(const FunctionProtoType *T,
740 void TypePrinter::printFunctionNoProtoBefore(const FunctionNoProtoType *T,
748 void TypePrinter::printFunctionNoProtoAfter(const FunctionNoProtoType *T,
761 void TypePrinter::printTypeSpec(const NamedDecl *D, raw_ostream &OS) {
767 void TypePrinter::printUnresolvedUsingBefore(const UnresolvedUsingType *T,
771 void TypePrinter::printUnresolvedUsingAfter(const UnresolvedUsingType *T,
774 void TypePrinter::printTypedefBefore(const TypedefType *T, raw_ostream &OS) {
777 void TypePrinter::printTypedefAfter(const TypedefType *T, raw_ostream &OS) { }
779 void TypePrinter::printTypeOfExprBefore(const TypeOfExprType *T,
786 void TypePrinter::printTypeOfExprAfter(const TypeOfExprType *T,
789 void TypePrinter::printTypeOfBefore(const TypeOfType *T, raw_ostream &OS) {
795 void TypePrinter::printTypeOfAfter(const TypeOfType *T, raw_ostream &OS) { }
797 void TypePrinter::printDecltypeBefore(const DecltypeType *T, raw_ostream &OS) {
804 void TypePrinter::printDecltypeAfter(const DecltypeType *T, raw_ostream &OS) { }
806 void TypePrinter::printUnaryTransformBefore(const UnaryTransformType *T,
821 void TypePrinter::printUnaryTransformAfter(const UnaryTransformType *T,
833 void TypePrinter::printAutoBefore(const AutoType *T, raw_ostream &OS) {
846 void TypePrinter::printAutoAfter(const AutoType *T, raw_ostream &OS) {
852 void TypePrinter::printAtomicBefore(const AtomicType *T, raw_ostream &OS) {
860 void TypePrinter::printAtomicAfter(const AtomicType *T, raw_ostream &OS) { }
880 const TemplateArgumentList &TemplateArgs = Spec->getTemplateArgs();
920 if (const IdentifierInfo *II = D->getIdentifier())
960 const TemplateArgument *Args;
963 const TemplateSpecializationType *TST =
968 const TemplateArgumentList &TemplateArgs = Spec->getTemplateArgs();
981 void TypePrinter::printRecordBefore(const RecordType *T, raw_ostream &OS) {
984 void TypePrinter::printRecordAfter(const RecordType *T, raw_ostream &OS) { }
986 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) {
989 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) { }
991 void TypePrinter::printTemplateTypeParmBefore(const TemplateTypeParmType *T,
999 void TypePrinter::printTemplateTypeParmAfter(const TemplateTypeParmType *T,
1003 const SubstTemplateTypeParmType *T,
1009 const SubstTemplateTypeParmType *T,
1016 const SubstTemplateTypeParmPackType *T,
1022 const SubstTemplateTypeParmPackType *T,
1029 const TemplateSpecializationType *T,
1041 const TemplateSpecializationType *T,
1044 void TypePrinter::printInjectedClassNameBefore(const InjectedClassNameType *T,
1048 void TypePrinter::printInjectedClassNameAfter(const InjectedClassNameType *T,
1051 void TypePrinter::printElaboratedBefore(const ElaboratedType *T,
1065 void TypePrinter::printElaboratedAfter(const ElaboratedType *T,
1071 void TypePrinter::printParenBefore(const ParenType *T, raw_ostream &OS) {
1078 void TypePrinter::printParenAfter(const ParenType *T, raw_ostream &OS) {
1086 void TypePrinter::printDependentNameBefore(const DependentNameType *T,
1097 void TypePrinter::printDependentNameAfter(const DependentNameType *T,
1101 const DependentTemplateSpecializationType *T, raw_ostream &OS) {
1118 const DependentTemplateSpecializationType *T, raw_ostream &OS) { }
1120 void TypePrinter::printPackExpansionBefore(const PackExpansionType *T,
1124 void TypePrinter::printPackExpansionAfter(const PackExpansionType *T,
1130 void TypePrinter::printAttributedBefore(const AttributedType *T,
1169 void TypePrinter::printAttributedAfter(const AttributedType *T,
1226 if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) {
1242 const VectorType *vector = T->getEquivalentType()->getAs<VectorType>();
1318 void TypePrinter::printObjCInterfaceBefore(const ObjCInterfaceType *T,
1323 void TypePrinter::printObjCInterfaceAfter(const ObjCInterfaceType *T,
1326 void TypePrinter::printObjCObjectBefore(const ObjCObjectType *T,
1354 for (const auto *I : T->quals()) {
1366 void TypePrinter::printObjCObjectAfter(const ObjCObjectType *T,
1373 void TypePrinter::printObjCObjectPointerBefore(const ObjCObjectPointerType *T,
1385 void TypePrinter::printObjCObjectPointerAfter(const ObjCObjectPointerType *T,
1390 const TemplateArgumentListInfo &Args,
1391 const PrintingPolicy &Policy) {
1401 const TemplateArgument *Args,
1403 const PrintingPolicy &Policy,
1405 const char *Comma = Policy.MSVCFormatting ? "," : ", ";
1452 const TemplateArgumentLoc *Args, unsigned NumArgs,
1453 const PrintingPolicy &Policy) {
1455 const char *Comma = Policy.MSVCFormatting ? "," : ", ";
1495 std::string Qualifiers::getAsString() const {
1503 std::string Qualifiers::getAsString(const PrintingPolicy &Policy) const {
1510 bool Qualifiers::isEmptyWhenPrinted(const PrintingPolicy &Policy) const {
1530 void Qualifiers::print(raw_ostream &OS, const PrintingPolicy& Policy,
1531 bool appendSpaceIfNonEmpty) const {
1595 std::string QualType::getAsString(const PrintingPolicy &Policy) const {
1601 std::string QualType::getAsString(const Type *ty, Qualifiers qs) {
1608 void QualType::print(const Type *ty, Qualifiers qs,
1609 raw_ostream &OS, const PrintingPolicy &policy,
1610 const Twine &PlaceHolder) {
1617 void QualType::getAsStringInternal(const Type *ty, Qualifiers qs,
1619 const PrintingPolicy &policy) {