Skip to content

Feature request: Change all type names from AX to TArgX #2135

@Aralox

Description

@Aralox

I work with legacy code bases which have hardcoded constants for A0, A1, etc (unavoidable). To use gtest, I replace all template arguments A0, A1, ... A10 with TArg0, TArg1, etc.

This is no fault of Google test, but I was wondering if it would be possible for you to make this change in the gtest code base. I believe it would help others working with legacy code bases with hardcoded constants too, especially with common names like A1, etc. I'm happy to make this change myself and open a PR, with the gtest team's approval.

As a side note, I also have to do this kind of search-replace on the protobuf source code, where I replace NAME with GNAME and MAX_TYPE with GMAX_TYPE.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions