http://llvm.org/bugs/show_bug.cgi?id=5231

           Summary: Add raw_svector_ostream variant for creating temporary
                    strings.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]


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() << " =
").str();
--

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to