Skip to content

ASTContext::getIntWidth, getTypeInfo, etc should be const #3930

@lattner

Description

@lattner
Bugzilla Link 3558
Resolution FIXED
Resolved on Jan 12, 2011 03:11
Version unspecified
OS All
CC @jayfoad

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"code-cleanup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions