[LLVMbugs] [Bug 5231] New: Add raw_svector_ostream variant for creating temporary strings.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Oct 17 15:42:21 PDT 2009


           Summary: Add raw_svector_ostream variant for creating temporary
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: clattner at apple.com, gohman at apple.com,
                    llvmbugs at cs.uiuc.edu, dgregor at apple.com

With the proliferation of raw_ostream, its becoming common to have code which
creates a small string just for streaming into:
    llvm::SmallString<256> NewSyntax;
    llvm::raw_svector_ostream OS(NewSyntax);
    OS << '.' << FieldName->getName() << " = ";
    return OS.str();
it would be nice to have a raw_ostream version which included the small string.
Something like:
  return (llvm::raw_tmp_ostream() << '.' << FileName->getName() << " =

Good idea, bad idea?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list