[Code Style Change] - Changed Vulkan code to match TVM conventions.#10101
[Code Style Change] - Changed Vulkan code to match TVM conventions.#10101Raghav-Chakravarthy wants to merge 2 commits intoapache:mainfrom
Conversation
|
Thanks for the suggestion, I don't see a need to apply this change. If @Lunderberg likes this patch we can reopen. |
|
I don't have a strong opinion either way. I don't have any issues with updating to the convention of using the trailing underscore for private members and no trailing underscores for public members, but it also isn't a very consistently followed convention at the moment. |
|
Running a quick check with |
|
@Lunderberg wouldn't it be great if we worked towards being able to do that? 😸 Personally I think we should encourage patches like this which improve our coding standards and follow the guidelines we set out for ourselves. Having said that, the correct approach under the Google C++ Guidelines is all data should be |
@Mousius Definitely agreed, and I'd like for it to be possible, either with a CI step or a standard pre-commit hook to format any modified files. I haven't had the bandwidth lately, but in case anybody reading this does, the options I used to search were as follows:
It does, yes. The reasoning is that private member variables with getters/setters can be replaced, while maintaining the same external behavior, but there is no way to replace public member variables without breaking at least some previously-allowed behavior. Essentially, structs to represent data, and classes to represent behavior, with no mixing allowed between them. I like doing so overall, but it would be a very dramatic shift from the existing public member variables. |
Code Style Change - Changed Vulkan code to match TVM conventions.