[LLVMbugs] [Bug 3558] New: ASTContext::getIntWidth, getTypeInfo, etc should be const

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 11 17:31:53 PST 2009


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

           Summary: ASTContext::getIntWidth, getTypeInfo, etc should be
                    const
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: code-cleanup
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


There are several accessors that are "logically" const but not marked as such. 
This causes const_casts in other logically const methods like
getLegacyIntegralTypeEncoding.  We should just mark the data they use as
mutable or avoid calling getCanonicalType in it.

-Chris


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