Convert c-style casts between integral end enum types to static_cast<>.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lg
| clang-tidy/google/AvoidCStyleCastsCheck.cpp | ||
|---|---|---|
| 85–89 | Why does getTypeAsWritten not work any more? Perhaps add a comment explaining that... | |
| clang-tidy/google/AvoidCStyleCastsCheck.cpp | ||
|---|---|---|
| 85–89 | getTypeAsWritten().getAsString() normalizes spelling of types in certain ways, e.g. "char*" -> "char *", "SomeEnum" -> "enum SomeEnum", which we don't want to do. | |
| clang-tidy/google/AvoidCStyleCastsCheck.cpp | ||
|---|---|---|
| 85–89 | The char* -> char * we don't really care about. The enum seems important, thus putting that into a comment would be nice. | |
Why does getTypeAsWritten not work any more? Perhaps add a comment explaining that...