Lines Matching refs:getLowerName
180 StringRef getLowerName() const { return lowerName; } in getLowerName() function in __anonf252f7a50111::Argument
227 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
231 OS << getLowerName(); in writeCloneArgs()
237 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
240 OS << getLowerName() << "()"; in writeCtorDefaultInitializers()
246 OS << type << " " << getLowerName() << ";"; in writeDeclarations()
250 OS << " " << type << " " << getLowerName() << " = " << read << ";\n"; in writePCHReadDecls()
253 OS << getLowerName(); in writePCHReadArgs()
316 OS << " return llvm::StringRef(" << getLowerName() << ", " in writeAccessors()
317 << getLowerName() << "Length);\n"; in writeAccessors()
320 OS << " return " << getLowerName() << "Length;\n"; in writeAccessors()
324 OS << " " << getLowerName() << "Length = S.size();\n"; in writeAccessors()
325 OS << " this->" << getLowerName() << " = new (C, 1) char [" in writeAccessors()
326 << getLowerName() << "Length];\n"; in writeAccessors()
327 OS << " std::memcpy(this->" << getLowerName() << ", S.data(), " in writeAccessors()
328 << getLowerName() << "Length);\n"; in writeAccessors()
338 OS << " std::memcpy(" << getLowerName() << ", " << getUpperName() in writeCtorBody()
339 << ".data(), " << getLowerName() << "Length);"; in writeCtorBody()
342 OS << getLowerName() << "Length(" << getUpperName() << ".size())," in writeCtorInitializers()
343 << getLowerName() << "(new (Ctx, 1) char[" << getLowerName() in writeCtorInitializers()
347 OS << getLowerName() << "Length(0)," << getLowerName() << "(0)"; in writeCtorDefaultInitializers()
353 OS << "unsigned " << getLowerName() << "Length;\n"; in writeDeclarations()
354 OS << "char *" << getLowerName() << ";"; in writeDeclarations()
357 OS << " std::string " << getLowerName() in writePCHReadDecls()
361 OS << getLowerName(); in writePCHReadArgs()
387 OS << " return is" << getLowerName() << "Expr;\n"; in writeAccessors()
391 OS << " assert(is" << getLowerName() << "Expr);\n"; in writeAccessors()
392 OS << " return " << getLowerName() << "Expr;\n"; in writeAccessors()
396 OS << " assert(!is" << getLowerName() << "Expr);\n"; in writeAccessors()
397 OS << " return " << getLowerName() << "Type;\n"; in writeAccessors()
403 OS << " if (is" << getLowerName() << "Expr)\n"; in writeAccessorDefinitions()
404 OS << " return " << getLowerName() << "Expr && (" << getLowerName() in writeAccessorDefinitions()
405 << "Expr->isValueDependent() || " << getLowerName() in writeAccessorDefinitions()
408 OS << " return " << getLowerName() in writeAccessorDefinitions()
420 OS << " if (is" << getLowerName() << "Expr)\n"; in writeAccessorDefinitions()
421 OS << " return (" << getLowerName() << "Expr ? " << getLowerName() in writeAccessorDefinitions()
429 OS << "is" << getLowerName() << "Expr, is" << getLowerName() in writeCloneArgs()
430 << "Expr ? static_cast<void*>(" << getLowerName() in writeCloneArgs()
431 << "Expr) : " << getLowerName() in writeCloneArgs()
439 OS << " if (is" << getLowerName() << "Expr)\n"; in writeCtorBody()
440 OS << " " << getLowerName() << "Expr = reinterpret_cast<Expr *>(" in writeCtorBody()
443 OS << " " << getLowerName() in writeCtorBody()
448 OS << "is" << getLowerName() << "Expr(Is" << getUpperName() << "Expr)"; in writeCtorInitializers()
451 OS << "is" << getLowerName() << "Expr(false)"; in writeCtorDefaultInitializers()
460 OS << "bool is" << getLowerName() << "Expr;\n"; in writeDeclarations()
462 OS << "Expr *" << getLowerName() << "Expr;\n"; in writeDeclarations()
463 OS << "TypeSourceInfo *" << getLowerName() << "Type;\n"; in writeDeclarations()
467 OS << "is" << getLowerName() << "Expr, " << getLowerName() << "Ptr"; in writePCHReadArgs()
470 OS << " bool is" << getLowerName() << "Expr = Record[Idx++];\n"; in writePCHReadDecls()
471 OS << " void *" << getLowerName() << "Ptr;\n"; in writePCHReadDecls()
472 OS << " if (is" << getLowerName() << "Expr)\n"; in writePCHReadDecls()
473 OS << " " << getLowerName() << "Ptr = ReadExpr(F);\n"; in writePCHReadDecls()
475 OS << " " << getLowerName() in writePCHReadDecls()
488 OS << " assert(is" << getLowerName() << "Expr && " << getLowerName() in writeValue()
490 OS << " " << getLowerName() << "Expr->printPretty(OS, 0, Policy);\n"; in writeValue()
513 : Argument(Arg, Attr), Type(T), ArgName(getLowerName().str() + "_"), in VariadicArgument()
514 ArgSizeName(ArgName + "Size"), RangeName(getLowerName()) {} in VariadicArgument()
519 std::string IteratorType = getLowerName().str() + "_iterator"; in writeAccessors()
520 std::string BeginFn = getLowerName().str() + "_begin()"; in writeAccessors()
521 std::string EndFn = getLowerName().str() + "_end()"; in writeAccessors()
528 OS << " unsigned " << getLowerName() << "_size() const {" in writeAccessors()
539 OS << "A->" << getLowerName() << "_begin(), " in writeTemplateInstantiationArgs()
540 << "A->" << getLowerName() << "_size()"; in writeTemplateInstantiationArgs()
566 OS << " unsigned " << getLowerName() << "Size = Record[Idx++];\n"; in writePCHReadDecls()
567 OS << " SmallVector<" << Type << ", 4> " << getLowerName() in writePCHReadDecls()
569 OS << " " << getLowerName() << ".reserve(" << getLowerName() in writePCHReadDecls()
571 OS << " for (unsigned i = " << getLowerName() << "Size; i; --i)\n"; in writePCHReadDecls()
574 OS << " " << getLowerName() << ".push_back(" << read << ");\n"; in writePCHReadDecls()
577 OS << getLowerName() << ".data(), " << getLowerName() << "Size"; in writePCHReadArgs()
580 OS << " Record.push_back(SA->" << getLowerName() << "_size());\n"; in writePCHWrite()
633 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
637 OS << getLowerName(); in writeCloneArgs()
643 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
646 OS << getLowerName() << "(" << type << "(0))"; in writeCtorDefaultInitializers()
664 OS << " " << type << " " << getLowerName() << ";"; in writeDeclarations()
667 OS << " " << getAttrName() << "Attr::" << type << " " << getLowerName() in writePCHReadDecls()
672 OS << getLowerName(); in writePCHReadArgs()
743 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writeDump()
744 << "_iterator I = SA->" << getLowerName() << "_begin(), E = SA->" in writeDump()
745 << getLowerName() << "_end(); I != E; ++I) {\n"; in writeDump()
756 OS << " unsigned " << getLowerName() << "Size = Record[Idx++];\n"; in writePCHReadDecls()
757 OS << " SmallVector<" << QualifiedTypeName << ", 4> " << getLowerName() in writePCHReadDecls()
759 OS << " " << getLowerName() << ".reserve(" << getLowerName() in writePCHReadDecls()
761 OS << " for (unsigned i = " << getLowerName() << "Size; i; --i)\n"; in writePCHReadDecls()
762 OS << " " << getLowerName() << ".push_back(" << "static_cast<" in writePCHReadDecls()
766 OS << " Record.push_back(SA->" << getLowerName() << "_size());\n"; in writePCHWrite()
767 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writePCHWrite()
768 << "_iterator i = SA->" << getLowerName() << "_begin(), e = SA->" in writePCHWrite()
769 << getLowerName() << "_end(); i != e; ++i)\n"; in writePCHWrite()
797 OS << " return " << getLowerName() << ";\n"; in writeAccessors()
801 OS << " " << getLowerName() << " = V;\n"; in writeAccessors()
811 OS << getLowerName() << "(" << getUpperName() << ")"; in writeCtorInitializers()
814 OS << getLowerName() << "()"; in writeCtorDefaultInitializers()
820 OS << "VersionTuple " << getLowerName() << ";\n"; in writeDeclarations()
823 OS << " VersionTuple " << getLowerName() in writePCHReadDecls()
827 OS << getLowerName(); in writePCHReadArgs()
833 OS << getLowerName() << "=\" << get" << getUpperName() << "() << \""; in writeValue()
885 OS << " " << getType() << " *I = A->" << getLowerName() in writeASTVisitorTraversal()
887 OS << " " << getType() << " *E = A->" << getLowerName() in writeASTVisitorTraversal()
898 << "A->" << getLowerName() << "_size()"; in writeTemplateInstantiationArgs()
904 << "[A->" << getLowerName() << "_size()];\n"; in writeTemplateInstantiation()
910 OS << " " << getType() << " *I = A->" << getLowerName() in writeTemplateInstantiation()
912 OS << " " << getType() << " *E = A->" << getLowerName() in writeTemplateInstantiation()
924 OS << " for (" << getAttrName() << "Attr::" << getLowerName() in writeDumpChildren()
925 << "_iterator I = SA->" << getLowerName() << "_begin(), E = SA->" in writeDumpChildren()
926 << getLowerName() << "_end(); I != E; ++I) {\n"; in writeDumpChildren()
934 OS << "SA->" << getLowerName() << "_begin() != " in writeHasChildren()
935 << "SA->" << getLowerName() << "_end()"; in writeHasChildren()
947 OS << " return " << getLowerName() << "->getType();\n"; in writeAccessors()
950 OS << " return " << getLowerName() << ";\n"; in writeAccessors()