Skip to content

Unify the coding style of using size_t or std::size_t #114

@xlinsist

Description

@xlinsist

size_t and std::size_t are both aliases of unsigned long in normal cases but defined in different standards. Though differences between them are subtle, unifications of usage is good for code style and code readability. Should we need clarification about it?

Currently buddy-mlir is using size_t and std::size_t combinely (e.g. in Container.cpp), which is somethat misleading and one is better to be replaced with the other. @meshtag and I have discussed about it and summarized that std::size_t is more friendly and simple for the compiler while size_t is neater for developers to use. Considerations remain open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions