nvpro-samples / vk_video_samples

Vulkan video samples
Apache License 2.0
262 stars 43 forks source link

Add a pre-commit hook to run a code formatter such as clang-format #100

Open dabrain34 opened 1 week ago

dabrain34 commented 1 week ago

In order to avoid malformed code, it would be great to define and use a code formatter such as clang-format

Any preference ? If not I would go for the one used in vk-gl-cts ?

dabrain34 commented 1 week ago

https://github.com/KhronosGroup/VK-GL-CTS/blob/main/scripts/src_util/run_clang_format.py