[LLVMbugs] [Bug 15143] New: A new warning: unneeded 'const_cast'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 3 07:47:15 PST 2013


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

             Bug #: 15143
           Summary: A new warning: unneeded 'const_cast'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: gribozavr at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I've been removing quite a few const_casts in clang codebase.  All of those
follow the pattern:

void f(const Z *);

...

const Z *cz = ...;
f(const_cast<Z*>(cz));

-- 
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