Home | History | Annotate | Download | only in AST

Lines Matching refs:print

1 //===--- TypePrinter.cpp - Pretty-Print Clang Types -----------------------===//
10 // This contains code to print types from Clang's type system.
91 void print(const Type *ty, Qualifiers qs, raw_ostream &OS,
93 void print(QualType T, raw_ostream &OS, StringRef PlaceHolder);
107 void print##CLASS##Before(const CLASS##Type *T, raw_ostream &OS); \
108 void print##CLASS##After(const CLASS##Type *T, raw_ostream &OS);
135 void TypePrinter::print(QualType t, raw_ostream &OS, StringRef PlaceHolder) {
137 print(split.Ty, split.Quals, OS, PlaceHolder);
140 void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS,
156 // CanPrefixQualifiers - We prefer to print type qualifiers before the type,
158 // the type is complex. For example if the type is "int*", we *must* print
233 // If we have cv1 T, where T is substituted for cv2 U, only print cv1 - cv2
251 // Print qualifiers as appropriate.
260 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true);
262 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true);
276 print##CLASS##Before(cast<CLASS##Type>(T), OS); \
284 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/!PrevPHIsEmpty.get());
286 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/!PrevPHIsEmpty.get());
302 print##CLASS##After(cast<CLASS##Type>(T), OS); \
410 TypePrinter(InnerPolicy).print(QualType(T->getClass(), 0), OS, StringRef());
476 // Print
485 // Print as though it's a pointer.
548 // FIXME: We prefer to print the size directly here, but have no way
553 print(T->getElementType(), OS, StringRef());
630 print(T->getParamType(i), OS, StringRef());
718 print(T->getReturnType(), OS, StringRef());
774 print(T->getUnderlyingType(), OS, StringRef());
796 print(T->getBaseType(), OS, StringRef());
817 // If the type has been deduced, do not print 'auto'.
826 // If the type has been deduced, do not print 'auto'.
835 print(T->getValueType(), OS, StringRef());
884 // We don't print tags unless this is an elaborated type.
934 // If this is a class template specialization, print the template
1010 T->getTemplateName().print(OS, Policy);
1038 Qualifier->print(OS, Policy);
1070 T->getQualifier()->print(OS, Policy);
1087 T->getQualifier()->print(OS, Policy);
1140 // If this is a calling convention attribute, don't print the implicit CC from
1160 print(vector->getElementType(), OS, StringRef());
1262 print(T->getBaseType(), OS, StringRef());
1283 T->getPointeeType().getLocalQualifiers().print(OS, Policy,
1339 // Print the argument into a string.
1352 Args[Arg].print(Policy, ArgOS);
1389 // Print the argument into a string.
1398 Args[Arg].getArgument().print(Policy, ArgOS);
1426 print(llvm::errs(), PrintingPolicy(LO), "identifier");
1445 print(StrOS, Policy);
1469 void Qualifiers::print(raw_ostream &OS, const PrintingPolicy& Policy,
1544 void QualType::print(const Type *ty, Qualifiers qs,
1550 TypePrinter(policy).print(ty, qs, OS, PH);
1558 TypePrinter(policy).print(ty, qs, StrOS, buffer);