[LLVMbugs] [Bug 1291] NEW: sys::Path enhancement: add PathWithStatus

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 29 23:43:10 PDT 2007


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

           Summary: sys::Path enhancement: add PathWithStatus
           Product: libraries
           Version: 1.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


Getting the status of a sys::path curently requires new'ing the status object.  It would be nice if we 
could make a subclass PathWithStatus, and move the 'status' related stuff there.  This would give us 
something like this:

class PathWithStatus : public Path {
   Status S;
   bool IsStatusValid;
}

If you sink the 'status gathering' methods out of Path into  
PathWithStatus, then you let the client decide whether they want to  
store a status or not, and if they want it, they don't have to pay for a separate malloc.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list