KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.33k stars 648 forks source link

clang-format script fails due to objective C files #1006

Closed SaschaWillems closed 7 months ago

SaschaWillems commented 7 months ago

I'm trying to fix some clang format problems on one of my branches, but I'm no longer able to run the clang-format script locally. It always errors out because it doesn't support objective-C files:

image

Is there a way to exclude these?

jeroenbakker-atmind commented 7 months ago

I can have a look at this.

The .clang-format config file only provides rules for CPP, scripts/clang_format.py has a filter that ignores none cpp files. Header files seems not to be ignored as they have the same extensions. Will see if we can detect Objective-C header files, or we really need to have a blacklist