Lines Matching refs:TypePrinter
1 //===--- TypePrinter.cpp - Pretty-Print Clang Types -----------------------===//
82 class TypePrinter {
88 explicit TypePrinter(const PrintingPolicy &Policy)
130 void TypePrinter::spaceBeforePlaceHolder(raw_ostream &OS) {
135 void TypePrinter::print(QualType t, raw_ostream &OS, StringRef PlaceHolder) {
140 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS,
154 bool TypePrinter::canPrefixQualifiers(const Type *T,
230 void TypePrinter::printBefore(QualType T, raw_ostream &OS) {
245 void TypePrinter::printBefore(const Type *T,Qualifiers Quals, raw_ostream &OS) {
291 void TypePrinter::printAfter(QualType t, raw_ostream &OS) {
298 void TypePrinter::printAfter(const Type *T, Qualifiers Quals, raw_ostream &OS) {
308 void TypePrinter::printBuiltinBefore(const BuiltinType *T, raw_ostream &OS) {
312 void TypePrinter::printBuiltinAfter(const BuiltinType *T, raw_ostream &OS) { }
314 void TypePrinter::printComplexBefore(const ComplexType *T, raw_ostream &OS) {
318 void TypePrinter::printComplexAfter(const ComplexType *T, raw_ostream &OS) {
322 void TypePrinter::printPointerBefore(const PointerType *T, raw_ostream &OS) {
332 void TypePrinter::printPointerAfter(const PointerType *T, raw_ostream &OS) {
342 void TypePrinter::printBlockPointerBefore(const BlockPointerType *T,
348 void TypePrinter::printBlockPointerAfter(const BlockPointerType *T,
354 void TypePrinter::printLValueReferenceBefore(const LValueReferenceType *T,
365 void TypePrinter::printLValueReferenceAfter(const LValueReferenceType *T,
376 void TypePrinter::printRValueReferenceBefore(const RValueReferenceType *T,
387 void TypePrinter::printRValueReferenceAfter(const RValueReferenceType *T,
398 void TypePrinter::printMemberPointerBefore(const MemberPointerType *T,
410 TypePrinter(InnerPolicy).print(QualType(T->getClass(), 0), OS, StringRef());
414 void TypePrinter::printMemberPointerAfter(const MemberPointerType *T,
425 void TypePrinter::printConstantArrayBefore(const ConstantArrayType *T,
431 void TypePrinter::printConstantArrayAfter(const ConstantArrayType *T,
437 void TypePrinter::printIncompleteArrayBefore(const IncompleteArrayType *T,
443 void TypePrinter::printIncompleteArrayAfter(const IncompleteArrayType *T,
449 void TypePrinter::printVariableArrayBefore(const VariableArrayType *T,
455 void TypePrinter::printVariableArrayAfter(const VariableArrayType *T,
475 void TypePrinter::printAdjustedBefore(const AdjustedType *T, raw_ostream &OS) {
480 void TypePrinter::printAdjustedAfter(const AdjustedType *T, raw_ostream &OS) {
484 void TypePrinter::printDecayedBefore(const DecayedType *T, raw_ostream &OS) {
488 void TypePrinter::printDecayedAfter(const DecayedType *T, raw_ostream &OS) {
492 void TypePrinter::printDependentSizedArrayBefore(
499 void TypePrinter::printDependentSizedArrayAfter(
509 void TypePrinter::printDependentSizedExtVectorBefore(
514 void TypePrinter::printDependentSizedExtVectorAfter(
524 void TypePrinter::printVectorBefore(const VectorType *T, raw_ostream &OS) {
560 void TypePrinter::printVectorAfter(const VectorType *T, raw_ostream &OS) {
564 void TypePrinter::printExtVectorBefore(const ExtVectorType *T,
568 void TypePrinter::printExtVectorAfter(const ExtVectorType *T, raw_ostream &OS) {
603 void TypePrinter::printFunctionProtoBefore(const FunctionProtoType *T,
618 void TypePrinter::printFunctionProtoAfter(const FunctionProtoType *T,
723 void TypePrinter::printFunctionNoProtoBefore(const FunctionNoProtoType *T,
731 void TypePrinter::printFunctionNoProtoAfter(const FunctionNoProtoType *T,
744 void TypePrinter::printTypeSpec(const NamedDecl *D, raw_ostream &OS) {
750 void TypePrinter::printUnresolvedUsingBefore(const UnresolvedUsingType *T,
754 void TypePrinter::printUnresolvedUsingAfter(const UnresolvedUsingType *T,
757 void TypePrinter::printTypedefBefore(const TypedefType *T, raw_ostream &OS) {
760 void TypePrinter::printTypedefAfter(const TypedefType *T, raw_ostream &OS) { }
762 void TypePrinter::printTypeOfExprBefore(const TypeOfExprType *T,
769 void TypePrinter::printTypeOfExprAfter(const TypeOfExprType *T,
772 void TypePrinter::printTypeOfBefore(const TypeOfType *T, raw_ostream &OS) {
778 void TypePrinter::printTypeOfAfter(const TypeOfType *T, raw_ostream &OS) { }
780 void TypePrinter::printDecltypeBefore(const DecltypeType *T, raw_ostream &OS) {
787 void TypePrinter::printDecltypeAfter(const DecltypeType *T, raw_ostream &OS) { }
789 void TypePrinter::printUnaryTransformBefore(const UnaryTransformType *T,
804 void TypePrinter::printUnaryTransformAfter(const UnaryTransformType *T,
816 void TypePrinter::printAutoBefore(const AutoType *T, raw_ostream &OS) {
825 void TypePrinter::printAutoAfter(const AutoType *T, raw_ostream &OS) {
831 void TypePrinter::printAtomicBefore(const AtomicType *T, raw_ostream &OS) {
839 void TypePrinter::printAtomicAfter(const AtomicType *T, raw_ostream &OS) { }
842 void TypePrinter::AppendScope(DeclContext *DC, raw_ostream &OS) {
875 void TypePrinter::printTag(TagDecl *D, raw_ostream &OS) {
959 void TypePrinter::printRecordBefore(const RecordType *T, raw_ostream &OS) {
962 void TypePrinter::printRecordAfter(const RecordType *T, raw_ostream &OS) { }
964 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) {
967 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) { }
969 void TypePrinter::printTemplateTypeParmBefore(const TemplateTypeParmType *T,
977 void TypePrinter::printTemplateTypeParmAfter(const TemplateTypeParmType *T,
980 void TypePrinter::printSubstTemplateTypeParmBefore(
986 void TypePrinter::printSubstTemplateTypeParmAfter(
993 void TypePrinter::printSubstTemplateTypeParmPackBefore(
999 void TypePrinter::printSubstTemplateTypeParmPackAfter(
1006 void TypePrinter::printTemplateSpecializationBefore(
1018 void TypePrinter::printTemplateSpecializationAfter(
1022 void TypePrinter::printInjectedClassNameBefore(const InjectedClassNameType *T,
1026 void TypePrinter::printInjectedClassNameAfter(const InjectedClassNameType *T,
1029 void TypePrinter::printElaboratedBefore(const ElaboratedType *T,
1043 void TypePrinter::printElaboratedAfter(const ElaboratedType *T,
1049 void TypePrinter::printParenBefore(const ParenType *T, raw_ostream &OS) {
1056 void TypePrinter::printParenAfter(const ParenType *T, raw_ostream &OS) {
1064 void TypePrinter::printDependentNameBefore(const DependentNameType *T,
1075 void TypePrinter::printDependentNameAfter(const DependentNameType *T,
1078 void TypePrinter::printDependentTemplateSpecializationBefore(
1095 void TypePrinter::printDependentTemplateSpecializationAfter(
1098 void TypePrinter::printPackExpansionBefore(const PackExpansionType *T,
1102 void TypePrinter::printPackExpansionAfter(const PackExpansionType *T,
1108 void TypePrinter::printAttributedBefore(const AttributedType *T,
1129 void TypePrinter::printAttributedAfter(const AttributedType *T,
1249 void TypePrinter::printObjCInterfaceBefore(const ObjCInterfaceType *T,
1254 void TypePrinter::printObjCInterfaceAfter(const ObjCInterfaceType *T,
1257 void TypePrinter::printObjCObjectBefore(const ObjCObjectType *T,
1275 void TypePrinter::printObjCObjectAfter(const ObjCObjectType *T,
1281 void TypePrinter::printObjCObjectPointerBefore(const ObjCObjectPointerType *T,
1314 void TypePrinter::printObjCObjectPointerAfter(const ObjCObjectPointerType *T,
1550 TypePrinter(policy).print(ty, qs, OS, PH);
1558 TypePrinter(policy).print(ty, qs, StrOS, buffer);