Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2021-10-24 19:31:08 +11:00
parent e288e392a8
commit 1411118055
21 changed files with 30 additions and 33 deletions

View File

@ -640,7 +640,7 @@ string OSLCompiler::compatible_name(ShaderNode *node, ShaderInput *input)
string sname(input->name().string());
size_t i;
/* strip whitespace */
/* Strip white-space. */
while ((i = sname.find(" ")) != string::npos)
sname.replace(i, 1, "");
@ -660,7 +660,7 @@ string OSLCompiler::compatible_name(ShaderNode *node, ShaderOutput *output)
string sname(output->name().string());
size_t i;
/* strip whitespace */
/* Strip white-space. */
while ((i = sname.find(" ")) != string::npos)
sname.replace(i, 1, "");

View File

@ -210,7 +210,7 @@ void AssetCatalogService::delete_catalog_by_id_hard(CatalogID catalog_id)
catalog_collection_->catalogs_.remove(catalog_id);
catalog_collection_->deleted_catalogs_.remove(catalog_id);
/* TODO(Sybren): adjust this when supporting mulitple CDFs. */
/* TODO(@sybren): adjust this when supporting multiple CDFs. */
catalog_collection_->catalog_definition_file_->forget(catalog_id);
}

View File

@ -984,7 +984,7 @@ TEST_F(AssetCatalogTest, refresh_catalogs_with_modification)
TestableAssetCatalogService service(asset_library_root_);
service.load_from_disk(cdf_dir);
/* === Perfom changes that should be handled gracefully by the reloading code: */
/* === Perform changes that should be handled gracefully by the reloading code: */
/* 1. Delete a subtree of catalogs. */
service.prune_catalogs_by_id(UUID_POSES_RUZENA);

View File

@ -346,7 +346,7 @@ bool BezierSpline::point_is_sharp(const int index) const
}
/**
* \warning: This functiona assumes that the spline has more than one point.
* \warning This functional assumes that the spline has more than one point.
*/
bool BezierSpline::segment_is_vector(const int index) const
{

View File

@ -391,7 +391,7 @@ constexpr StringRef StringRefBase::trim() const
}
/**
* Return a new StringRef that does not contain leading and trailing whitespace.
* Return a new StringRef that does not contain leading and trailing white-space.
*/
constexpr StringRef StringRefBase::trim(const char character_to_remove) const
{

View File

@ -653,7 +653,7 @@ static bool parse_add_func(ExprParseState *state, eOpCode code, int args, void *
/* Extract the next token from raw characters. */
static bool parse_next_token(ExprParseState *state)
{
/* Skip whitespace. */
/* Skip white-space. */
while (isspace(*state->cur)) {
state->cur++;
}

View File

@ -1426,8 +1426,7 @@ float BLI_noise_mg_multi_fractal(
}
return value;
} /* multifractal() */
}
/**
* Heterogeneous procedural terrain function: stats by altitude method.

View File

@ -1026,7 +1026,7 @@ void BLI_str_toupper_ascii(char *str, const size_t len)
}
/**
* Strip whitespace from end of the string.
* Strip white-space from end of the string.
*/
void BLI_str_rstrip(char *str)
{

View File

@ -1796,11 +1796,11 @@ bool BMO_op_vinitf(BMesh *bm, BMOperator *op, const int flag, const char *_fmt,
while (*fmt) {
if (state) {
/* jump past leading whitespace */
/* Jump past leading white-space. */
i = strspn(fmt, " ");
fmt += i;
/* ignore trailing whitespace */
/* Ignore trailing white-space. */
if (!fmt[i]) {
break;
}

View File

@ -126,16 +126,14 @@ class Node {
}
/**
* get the reference to a certain outputsocket
* \param index:
* the index of the needed outputsocket
* Get the reference to a certain output-socket.
* \param index: The index of the needed output-socket.
*/
NodeOutput *get_output_socket(const unsigned int index = 0) const;
/**
* get the reference to a certain inputsocket
* \param index:
* the index of the needed inputsocket
* get the reference to a certain input-socket.
* \param index: The index of the needed input-socket.
*/
NodeInput *get_input_socket(const unsigned int index) const;

View File

@ -405,8 +405,8 @@ void EEVEE_motion_blur_cache_finish(EEVEE_Data *vedata)
/* Push instances attributes to the GPU. */
DRW_render_instance_buffer_finish();
/* Need to be called after DRW_render_instance_buffer_finish() */
/* Also we weed to have a correct fbo bound for DRW_hair_update */
/* Need to be called after #DRW_render_instance_buffer_finish() */
/* Also we weed to have a correct FBO bound for #DRW_hair_update. */
GPU_framebuffer_bind(vedata->fbl->main_fb);
DRW_hair_update();

View File

@ -185,7 +185,7 @@ void workbench_render(void *ved, RenderEngine *engine, RenderLayer *render_layer
DRW_render_instance_buffer_finish();
/* Also we weed to have a correct fbo bound for DRW_hair_update */
/* Also we weed to have a correct FBO bound for #DRW_hair_update */
GPU_framebuffer_bind(dfbl->default_fb);
DRW_hair_update();

View File

@ -1679,7 +1679,7 @@ void OBJECT_OT_make_links_data(wmOperatorType *ot)
static bool single_data_needs_duplication(ID *id)
{
/* NOTE: When dealing with linked data, we always make alocal copy of it.
/* NOTE: When dealing with linked data, we always make a local copy of it.
* While in theory we could rather make it local when it only has one user, this is difficult
* in practice with current code of this function. */
return (id != NULL && (id->us > 1 || ID_IS_LINKED(id)));

View File

@ -1000,7 +1000,7 @@ static void PE_update_mirror_cache(Object *ob, ParticleSystem *psys)
tree = BLI_kdtree_3d_new(totpart);
/* insert particles into kd tree */
/* Insert particles into KD-tree. */
LOOP_PARTICLES
{
key = pa->hair;

View File

@ -75,7 +75,7 @@ typedef struct TextFormatType {
} TextFormatType;
enum {
/** Whitespace */
/** White-space */
FMT_TYPE_WHITESPACE = '_',
/** Comment text */
FMT_TYPE_COMMENT = '#',
@ -85,7 +85,7 @@ enum {
FMT_TYPE_NUMERAL = 'n',
/** String letters */
FMT_TYPE_STRING = 'l',
/** Decorator / Preprocessor directive */
/** Decorator / Pre-processor directive */
FMT_TYPE_DIRECTIVE = 'd',
/** Special variables (class, def) */
FMT_TYPE_SPECIAL = 'v',

View File

@ -277,7 +277,7 @@ static void txtfmt_lua_format_line(SpaceText *st, TextLine *line, const bool do_
cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE;
*fmt = FMT_TYPE_STRING;
}
/* Whitespace (all ws. has been converted to spaces) */
/* White-space (all ws. has been converted to spaces). */
else if (*str == ' ') {
*fmt = FMT_TYPE_WHITESPACE;
}

View File

@ -170,7 +170,7 @@ static int txtfmt_osl_find_preprocessor(const char *string)
{
if (string[0] == '#') {
int i = 1;
/* Whitespace is ok '# foo' */
/* White-space is ok '# foo'. */
while (text_check_whitespace(string[i])) {
i++;
}
@ -298,7 +298,7 @@ static void txtfmt_osl_format_line(SpaceText *st, TextLine *line, const bool do_
cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE;
*fmt = FMT_TYPE_STRING;
}
/* Whitespace (all ws. has been converted to spaces) */
/* White-space (all ws. has been converted to spaces). */
else if (*str == ' ') {
*fmt = FMT_TYPE_WHITESPACE;
}

View File

@ -870,7 +870,7 @@ static void txtfmt_pov_format_line(SpaceText *st, TextLine *line, const bool do_
cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE;
*fmt = FMT_TYPE_STRING;
}
/* Whitespace (all ws. has been converted to spaces) */
/* White-space (all ws. has been converted to spaces). */
else if (*str == ' ') {
*fmt = FMT_TYPE_WHITESPACE;
}

View File

@ -448,7 +448,7 @@ static void txtfmt_pov_ini_format_line(SpaceText *st, TextLine *line, const bool
cont = (*str == '"') ? FMT_CONT_QUOTEDOUBLE : FMT_CONT_QUOTESINGLE;
*fmt = FMT_TYPE_STRING;
}
/* Whitespace (all ws. has been converted to spaces) */
/* White-space (all ws. has been converted to spaces). */
else if (*str == ' ') {
*fmt = FMT_TYPE_WHITESPACE;
}

View File

@ -423,7 +423,7 @@ static void txtfmt_py_format_line(SpaceText *st, TextLine *line, const bool do_n
}
*fmt = FMT_TYPE_STRING;
}
/* Whitespace (all ws. has been converted to spaces) */
/* White-space (all ws. has been converted to spaces). */
else if (*str == ' ') {
*fmt = FMT_TYPE_WHITESPACE;
}

View File

@ -20,10 +20,10 @@
/** \file
* \ingroup modifiers
*
* EdgeSplit modifier
* Edge Split modifier
*
* Splits edges in the mesh according to sharpness flag
* or edge angle (can be used to achieve autosmoothing)
* or edge angle (can be used to achieve auto-smoothing)
*/
#include "BLI_utildefines.h"