Lines Matching refs:getLowerName
205 StringRef getLowerName() const { return lowerName; } in getLowerName() function in __anonf1952ce10211::Argument
255 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
260 OS << getLowerName(); in writeCloneArgs()
268 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
272 OS << getLowerName() << "()"; in writeCtorDefaultInitializers()
280 OS << type << " " << getLowerName() << ";"; in writeDeclarations()
285 OS << " " << type << " " << getLowerName() << " = " << read << ";\n"; in writePCHReadDecls()
289 OS << getLowerName(); in writePCHReadArgs()
362 OS << " return llvm::StringRef(" << getLowerName() << ", " in writeAccessors()
363 << getLowerName() << "Length);\n"; in writeAccessors()
366 OS << " return " << getLowerName() << "Length;\n"; in writeAccessors()
370 OS << " " << getLowerName() << "Length = S.size();\n"; in writeAccessors()
371 OS << " this->" << getLowerName() << " = new (C, 1) char [" in writeAccessors()
372 << getLowerName() << "Length];\n"; in writeAccessors()
374 OS << " std::memcpy(this->" << getLowerName() << ", S.data(), " in writeAccessors()
375 << getLowerName() << "Length);\n"; in writeAccessors()
389 OS << " std::memcpy(" << getLowerName() << ", " << getUpperName() in writeCtorBody()
390 << ".data(), " << getLowerName() << "Length);\n"; in writeCtorBody()
394 OS << getLowerName() << "Length(" << getUpperName() << ".size())," in writeCtorInitializers()
395 << getLowerName() << "(new (Ctx, 1) char[" << getLowerName() in writeCtorInitializers()
400 OS << getLowerName() << "Length(0)," << getLowerName() << "(nullptr)"; in writeCtorDefaultInitializers()
408 OS << "unsigned " << getLowerName() << "Length;\n"; in writeDeclarations()
409 OS << "char *" << getLowerName() << ";"; in writeDeclarations()
413 OS << " std::string " << getLowerName() in writePCHReadDecls()
418 OS << getLowerName(); in writePCHReadArgs()
447 OS << " return is" << getLowerName() << "Expr;\n"; in writeAccessors()
451 OS << " assert(is" << getLowerName() << "Expr);\n"; in writeAccessors()
452 OS << " return " << getLowerName() << "Expr;\n"; in writeAccessors()
456 OS << " assert(!is" << getLowerName() << "Expr);\n"; in writeAccessors()
457 OS << " return " << getLowerName() << "Type;\n"; in writeAccessors()
464 OS << " if (is" << getLowerName() << "Expr)\n"; in writeAccessorDefinitions()
465 OS << " return " << getLowerName() << "Expr && (" << getLowerName() in writeAccessorDefinitions()
466 << "Expr->isValueDependent() || " << getLowerName() in writeAccessorDefinitions()
469 OS << " return " << getLowerName() in writeAccessorDefinitions()
479 OS << " if (is" << getLowerName() << "Expr)\n"; in writeAccessorDefinitions()
480 OS << " return " << getLowerName() << "Expr ? " << getLowerName() in writeAccessorDefinitions()
490 OS << "is" << getLowerName() << "Expr, is" << getLowerName() in writeCloneArgs()
491 << "Expr ? static_cast<void*>(" << getLowerName() in writeCloneArgs()
492 << "Expr) : " << getLowerName() in writeCloneArgs()
502 OS << " if (is" << getLowerName() << "Expr)\n"; in writeCtorBody()
503 OS << " " << getLowerName() << "Expr = reinterpret_cast<Expr *>(" in writeCtorBody()
506 OS << " " << getLowerName() in writeCtorBody()
512 OS << "is" << getLowerName() << "Expr(Is" << getUpperName() << "Expr)"; in writeCtorInitializers()
516 OS << "is" << getLowerName() << "Expr(false)"; in writeCtorDefaultInitializers()
528 OS << "bool is" << getLowerName() << "Expr;\n"; in writeDeclarations()
530 OS << "Expr *" << getLowerName() << "Expr;\n"; in writeDeclarations()
531 OS << "TypeSourceInfo *" << getLowerName() << "Type;\n"; in writeDeclarations()
536 OS << "is" << getLowerName() << "Expr, " << getLowerName() << "Ptr"; in writePCHReadArgs()
540 OS << " bool is" << getLowerName() << "Expr = Record[Idx++];\n"; in writePCHReadDecls()
541 OS << " void *" << getLowerName() << "Ptr;\n"; in writePCHReadDecls()
542 OS << " if (is" << getLowerName() << "Expr)\n"; in writePCHReadDecls()
543 OS << " " << getLowerName() << "Ptr = ReadExpr(F);\n"; in writePCHReadDecls()
545 OS << " " << getLowerName() in writePCHReadDecls()
561 OS << " if (is" << getLowerName() << "Expr && " in writeValue()
562 << getLowerName() << "Expr)\n"; in writeValue()
563 OS << " " << getLowerName() << "Expr->printPretty(OS, nullptr, Policy);\n"; in writeValue()
594 ArgName(getLowerName().str() + "_"), ArgSizeName(ArgName + "Size"), in VariadicArgument()
595 RangeName(getLowerName()) {} in VariadicArgument()
603 std::string IteratorType = getLowerName().str() + "_iterator"; in writeAccessors()
604 std::string BeginFn = getLowerName().str() + "_begin()"; in writeAccessors()
605 std::string EndFn = getLowerName().str() + "_end()"; in writeAccessors()
612 OS << " unsigned " << getLowerName() << "_size() const {" in writeAccessors()
625 OS << "A->" << getLowerName() << "_begin(), " in writeTemplateInstantiationArgs()
626 << "A->" << getLowerName() << "_size()"; in writeTemplateInstantiationArgs()
659 OS << " unsigned " << getLowerName() << "Size = Record[Idx++];\n"; in writePCHReadDecls()
661 << getLowerName() << ";\n"; in writePCHReadDecls()
662 OS << " " << getLowerName() << ".reserve(" << getLowerName() in writePCHReadDecls()
669 std::string StorageName = getLowerName(); in writePCHReadDecls()
674 OS << " " << StorageName << ".reserve(" << getLowerName() in writePCHReadDecls()
678 OS << " for (unsigned i = 0; i != " << getLowerName() << "Size; ++i)\n"; in writePCHReadDecls()
683 OS << " for (unsigned i = 0; i != " << getLowerName() << "Size; ++i)\n"; in writePCHReadDecls()
684 OS << " " << getLowerName() << ".push_back(" in writePCHReadDecls()
690 OS << getLowerName() << ".data(), " << getLowerName() << "Size"; in writePCHReadArgs()
694 OS << " Record.push_back(SA->" << getLowerName() << "_size());\n"; in writePCHWrite()
749 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
754 OS << getLowerName(); in writeCloneArgs()
761 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
764 OS << getLowerName() << "(" << type << "(0))"; in writeCtorDefaultInitializers()
781 OS << " " << type << " " << getLowerName() << ";"; in writeDeclarations()
785 OS << " " << getAttrName() << "Attr::" << type << " " << getLowerName() in writePCHReadDecls()
791 OS << getLowerName(); in writePCHReadArgs()
896 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writeDump()
897 << "_iterator I = SA->" << getLowerName() << "_begin(), E = SA->" in writeDump()
898 << getLowerName() << "_end(); I != E; ++I) {\n"; in writeDump()
910 OS << " unsigned " << getLowerName() << "Size = Record[Idx++];\n"; in writePCHReadDecls()
911 OS << " SmallVector<" << QualifiedTypeName << ", 4> " << getLowerName() in writePCHReadDecls()
913 OS << " " << getLowerName() << ".reserve(" << getLowerName() in writePCHReadDecls()
915 OS << " for (unsigned i = " << getLowerName() << "Size; i; --i)\n"; in writePCHReadDecls()
916 OS << " " << getLowerName() << ".push_back(" << "static_cast<" in writePCHReadDecls()
921 OS << " Record.push_back(SA->" << getLowerName() << "_size());\n"; in writePCHWrite()
922 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writePCHWrite()
923 << "_iterator i = SA->" << getLowerName() << "_begin(), e = SA->" in writePCHWrite()
924 << getLowerName() << "_end(); i != e; ++i)\n"; in writePCHWrite()
966 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
970 OS << " " << getLowerName() << " = V;\n"; in writeAccessors()
983 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
987 OS << getLowerName() << "()"; in writeCtorDefaultInitializers()
995 OS << "VersionTuple " << getLowerName() << ";\n"; in writeDeclarations()
999 OS << " VersionTuple " << getLowerName() in writePCHReadDecls()
1004 OS << getLowerName(); in writePCHReadArgs()
1012 OS << getLowerName() << "=\" << get" << getUpperName() << "() << \""; in writeValue()
1065 OS << " " << getType() << " *I = A->" << getLowerName() in writeASTVisitorTraversal()
1067 OS << " " << getType() << " *E = A->" << getLowerName() in writeASTVisitorTraversal()
1078 << "A->" << getLowerName() << "_size()"; in writeTemplateInstantiationArgs()
1084 << "[A->" << getLowerName() << "_size()];\n"; in writeTemplateInstantiation()
1090 OS << " " << getType() << " *I = A->" << getLowerName() in writeTemplateInstantiation()
1092 OS << " " << getType() << " *E = A->" << getLowerName() in writeTemplateInstantiation()
1104 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writeDumpChildren()
1105 << "_iterator I = SA->" << getLowerName() << "_begin(), E = SA->" in writeDumpChildren()
1106 << getLowerName() << "_end(); I != E; ++I)\n"; in writeDumpChildren()
1111 OS << "SA->" << getLowerName() << "_begin() != " in writeHasChildren()
1112 << "SA->" << getLowerName() << "_end()"; in writeHasChildren()
1147 OS << " return " << getLowerName() << "->getType();\n"; in writeAccessors()
1150 OS << " return " << getLowerName() << ";\n"; in writeAccessors()