Style: Enable clang-format's InsertBraces config
This was part of our style guide since we started using clang-format but the feature was only added in clang-format 15, and we hadn't noticed it yet.
This commit is contained in:
@ -850,8 +850,9 @@ public:
|
||||
uint32_t front_reference = 0;
|
||||
uint32_t back_reference = 0;
|
||||
_FORCE_INLINE_ void apply(id<MTLRenderCommandEncoder> __unsafe_unretained p_enc) const {
|
||||
if (!enabled)
|
||||
if (!enabled) {
|
||||
return;
|
||||
}
|
||||
[p_enc setStencilFrontReferenceValue:front_reference backReferenceValue:back_reference];
|
||||
}
|
||||
} stencil;
|
||||
|
||||
@ -1198,8 +1198,9 @@ class BufReader {
|
||||
uint64_t pos = 0;
|
||||
|
||||
bool check_length(size_t p_size) {
|
||||
if (status != Status::OK)
|
||||
if (status != Status::OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (pos + p_size > length) {
|
||||
status = Status::SHORT_BUFFER;
|
||||
@ -2518,8 +2519,9 @@ RDD::ShaderID RenderingDeviceDriverMetal::shader_create_from_bytecode(const Vect
|
||||
|
||||
for (UniformInfo const &uniform : set.uniforms) {
|
||||
BindingInfo const *binding_info = uniform.bindings.getptr(stage);
|
||||
if (binding_info == nullptr)
|
||||
if (binding_info == nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
[descriptors addObject:binding_info->new_argument_descriptor()];
|
||||
BindingInfo const *secondary_binding_info = uniform.bindings_secondary.getptr(stage);
|
||||
|
||||
Reference in New Issue
Block a user