Clang-Tidy: Enable readability-redundant-control-flow

This commit is contained in:
Hans Goudey 2020-07-03 09:41:55 -04:00
parent ffef562bf7
commit 19ff145e66
19 changed files with 0 additions and 31 deletions

View File

@ -17,7 +17,6 @@ Checks: >
-readability-inconsistent-declaration-parameter-name,
-readability-non-const-parameter,
-readability-redundant-preprocessor,
-readability-redundant-control-flow,
-readability-named-parameter,
-readability-function-size,
-readability-function-size,

View File

@ -906,8 +906,6 @@ void MEM_guarded_freeN(void *vmemh)
totblock--;
/* here a DUMP should happen */
return;
}
/* --------------------------------------------------------------------- */

View File

@ -1272,8 +1272,6 @@ void BKE_texpaint_slot_refresh_cache(Scene *scene, Material *ma)
if (ma->paint_clone_slot >= count) {
ma->paint_clone_slot = count - 1;
}
return;
}
void BKE_texpaint_slots_refresh_object(Scene *scene, struct Object *ob)

View File

@ -481,7 +481,6 @@ static void ccd_mesh_update(Object *ob, ccd_Mesh *pccd_M)
mima->maxy = max_ff(mima->maxy, v[1] + hull);
mima->maxz = max_ff(mima->maxz, v[2] + hull);
}
return;
}
static void ccd_mesh_free(ccd_Mesh *ccdm)

View File

@ -875,7 +875,6 @@ BLI_INLINE void studiolight_spherical_harmonics_eval(StudioLight *sl,
color[i] = studiolight_spherical_harmonics_geomerics_eval(
normal, sh[0][i], sh[1][i], sh[2][i], sh[3][i]);
}
return;
#else
/* L0 */
mul_v3_v3fl(color, sl->spherical_harmonics_coefs[0], 0.282095f);

View File

@ -4908,7 +4908,6 @@ static void direct_link_particlesystems(BlendDataReader *reader, ListBase *parti
psys->orig_psys = NULL;
psys->batch_cache = NULL;
}
return;
}
/** \} */

View File

@ -138,7 +138,6 @@ void VectorBlurOperation::generateVectorBlur(float *data,
inputImage->getBuffer(),
inputSpeed->getBuffer(),
inputZ->getBuffer());
return;
}
/* ****************** Spans ******************************* */

View File

@ -150,7 +150,6 @@ void DRW_gpencil_batch_cache_free(bGPdata *gpd)
gpencil_batch_cache_clear(gpd->runtime.gpencil_cache);
MEM_SAFE_FREE(gpd->runtime.gpencil_cache);
gpd->flag |= GP_DATA_CACHE_IS_DIRTY;
return;
}
/** \} */

View File

@ -408,8 +408,6 @@ static void gpencil_grid_colors_calc(tGP_BrushVertexpaintData *gso)
round_v2i_v2fl(gso->grid_sample, gso->mval);
gso->grid_ready = true;
return;
}
/* ************************************************ */

View File

@ -4119,8 +4119,6 @@ static void vgroup_sort_bone_hierarchy(Object *ob, ListBase *bonebase)
}
}
}
return;
}
enum {

View File

@ -5906,8 +5906,6 @@ static void project_state_init(bContext *C, Object *ob, ProjPaintState *ps, int
ps->dither = settings->imapaint.dither;
ps->use_colormanagement = BKE_scene_check_color_management_enabled(CTX_data_scene(C));
return;
}
void *paint_proj_new_stroke(bContext *C, Object *ob, const float mouse[2], int mode)

View File

@ -671,8 +671,6 @@ void SCULPT_do_cloth_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode
/* Update and write the simulation to the nodes. */
cloth_brush_do_simulation_step(sd, ob, ss->cache->cloth_sim, nodes, totnode);
return;
}
void SCULPT_cloth_simulation_free(struct SculptClothSimulation *cloth_sim)

View File

@ -228,8 +228,6 @@ static void HC_relaxation_iteration_uv(BMEditMesh *em,
}
MEM_freeN(tmp_uvdata);
return;
}
static void laplacian_relaxation_iteration_uv(BMEditMesh *em,
@ -302,8 +300,6 @@ static void laplacian_relaxation_iteration_uv(BMEditMesh *em,
}
MEM_freeN(tmp_uvdata);
return;
}
static void uv_sculpt_stroke_apply(bContext *C,

View File

@ -139,7 +139,6 @@ static void console_cursor_wrap_offset(
*column += col;
}
return;
}
static void console_textview_draw_cursor(TextViewContext *tvc, int cwidth, int columns)

View File

@ -248,7 +248,6 @@ void semi_definite_symmetric_eigen(const double *mat, int n, double *eigen_vec,
delete[] v;
delete[] index;
return;
}
//_________________________________________________________

View File

@ -282,8 +282,6 @@ static void gpu_shader_standard_defines(char defines[MAX_DEFINE_LENGTH])
else {
strcat(defines, "#define DFDY_SIGN -1.0\n");
}
return;
}
GPUShader *GPU_shader_create(const char *vertexcode,

View File

@ -967,8 +967,6 @@ void AnimationImporter::apply_matrix_curves(Object *ob,
else {
ob->rotmode = ROT_MODE_QUAT;
}
return;
}
/*

View File

@ -237,8 +237,6 @@ void BPY_driver_reset(void)
if (use_gil) {
PyGILState_Release(gilstate);
}
return;
}
/* error return function for BPY_eval_pydriver */

View File

@ -542,7 +542,6 @@ static void build_pict_list_ex(
totframes--;
}
}
return;
}
static void build_pict_list(PlayState *ps, const char *first, int totframes, int fstep, int fontid)