Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@ -143,7 +143,6 @@ static const TBuiltInResource default_builtin_resource = {
|
||||
};
|
||||
|
||||
static Vector<uint8_t> _compile_shader_glsl(RenderingDevice::ShaderStage p_stage, const String &p_source_code, RenderingDevice::ShaderLanguage p_language, String *r_error) {
|
||||
|
||||
Vector<uint8_t> ret;
|
||||
|
||||
ERR_FAIL_COND_V(p_language == RenderingDevice::SHADER_LANGUAGE_HLSL, ret);
|
||||
@ -177,7 +176,6 @@ static Vector<uint8_t> _compile_shader_glsl(RenderingDevice::ShaderStage p_stage
|
||||
|
||||
//preprocess
|
||||
if (!shader.preprocess(&default_builtin_resource, DefaultVersion, ENoProfile, false, false, messages, &pre_processed_code, includer)) {
|
||||
|
||||
if (r_error) {
|
||||
(*r_error) = "Failed pre-process:\n";
|
||||
(*r_error) += shader.getInfoLog();
|
||||
@ -241,6 +239,5 @@ void preregister_glslang_types() {
|
||||
void register_glslang_types() {
|
||||
}
|
||||
void unregister_glslang_types() {
|
||||
|
||||
glslang::FinalizeProcess();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user