[Bf-blender-cvs] [14111180553] master: Cleanup: spelling in comments

Campbell Barton noreply at git.blender.org
Sun Oct 24 13:41:43 CEST 2021


Commit: 1411118055368022cf466448d4da8494d05e02c1
Author: Campbell Barton
Date:   Sun Oct 24 19:31:08 2021 +1100
Branches: master
https://developer.blender.org/rB1411118055368022cf466448d4da8494d05e02c1

Cleanup: spelling in comments

===================================================================

M	intern/cycles/render/osl.cpp
M	source/blender/blenkernel/intern/asset_catalog.cc
M	source/blender/blenkernel/intern/asset_catalog_test.cc
M	source/blender/blenkernel/intern/spline_bezier.cc
M	source/blender/blenlib/BLI_string_ref.hh
M	source/blender/blenlib/intern/expr_pylike_eval.c
M	source/blender/blenlib/intern/noise.c
M	source/blender/blenlib/intern/string.c
M	source/blender/bmesh/intern/bmesh_operators.c
M	source/blender/compositor/intern/COM_Node.h
M	source/blender/draw/engines/eevee/eevee_motion_blur.c
M	source/blender/draw/engines/workbench/workbench_render.c
M	source/blender/editors/object/object_relations.c
M	source/blender/editors/physics/particle_edit.c
M	source/blender/editors/space_text/text_format.h
M	source/blender/editors/space_text/text_format_lua.c
M	source/blender/editors/space_text/text_format_osl.c
M	source/blender/editors/space_text/text_format_pov.c
M	source/blender/editors/space_text/text_format_pov_ini.c
M	source/blender/editors/space_text/text_format_py.c
M	source/blender/modifiers/intern/MOD_edgesplit.c

===================================================================

diff --git a/intern/cycles/render/osl.cpp b/intern/cycles/render/osl.cpp
index 77863fa0137..dd8f1b31177 100644
--- a/intern/cycles/render/osl.cpp
+++ b/intern/cycles/render/osl.cpp
@@ -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, "");
 
diff --git a/source/blender/blenkernel/intern/asset_catalog.cc b/source/blender/blenkernel/intern/asset_catalog.cc
index 41510ff1d02..13f66445c46 100644
--- a/source/blender/blenkernel/intern/asset_catalog.cc
+++ b/source/blender/blenkernel/intern/asset_catalog.cc
@@ -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);
 }
 
diff --git a/source/blender/blenkernel/intern/asset_catalog_test.cc b/source/blender/blenkernel/intern/asset_catalog_test.cc
index a2835d7b3b2..abe6d384247 100644
--- a/source/blender/blenkernel/intern/asset_catalog_test.cc
+++ b/source/blender/blenkernel/intern/asset_catalog_test.cc
@@ -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);
diff --git a/source/blender/blenkernel/intern/spline_bezier.cc b/source/blender/blenkernel/intern/spline_bezier.cc
index 36ccadf521b..e760bf3495e 100644
--- a/source/blender/blenkernel/intern/spline_bezier.cc
+++ b/source/blender/blenkernel/intern/spline_bezier.cc
@@ -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
 {
diff --git a/source/blender/blenlib/BLI_string_ref.hh b/source/blender/blenlib/BLI_string_ref.hh
index 4c2b26fe316..34baf94c448 100644
--- a/source/blender/blenlib/BLI_string_ref.hh
+++ b/source/blender/blenlib/BLI_string_ref.hh
@@ -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
 {
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c
index 4d1ba190c14..1acb8299aa2 100644
--- a/source/blender/blenlib/intern/expr_pylike_eval.c
+++ b/source/blender/blenlib/intern/expr_pylike_eval.c
@@ -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++;
   }
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index 9850de69b5a..a0938f4f713 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -1426,8 +1426,7 @@ float BLI_noise_mg_multi_fractal(
   }
 
   return value;
-
-} /* multifractal() */
+}
 
 /**
  * Heterogeneous procedural terrain function: stats by altitude method.
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index 0ea784c95b0..e8be674b6c1 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -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)
 {
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c
index cf7697ad35f..221994aa313 100644
--- a/source/blender/bmesh/intern/bmesh_operators.c
+++ b/source/blender/bmesh/intern/bmesh_operators.c
@@ -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;
       }
diff --git a/source/blender/compositor/intern/COM_Node.h b/source/blender/compositor/intern/COM_Node.h
index bd8b37276a0..dd126770303 100644
--- a/source/blender/compositor/intern/COM_Node.h
+++ b/source/blender/compositor/intern/COM_Node.h
@@ -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;
 
diff --git a/source/blender/draw/engines/eevee/eevee_motion_blur.c b/source/blender/draw/engines/eevee/eevee_motion_blur.c
index e8c2514d908..1eff2a3af24 100644
--- a/source/blender/draw/engines/eevee/eevee_motion_blur.c
+++ b/source/blender/draw/engines/eevee/eevee_motion_blur.c
@@ -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();
 
diff --git a/source/blender/draw/engines/workbench/workbench_render.c b/source/blender/draw/engines/workbench/workbench_render.c
index f2d178f6565..125bee87614 100644
--- a/source/blender/draw/engines/workbench/workbench_render.c
+++ b/source/blender/draw/engines/workbench/workbench_render.c
@@ -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();
 
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index fceccbb6df1..d81143d6081 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -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)));
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 8afc5c583e0..97f3b96cd18 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -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;
diff --git a/source/blender/editors/space_text/text_format.h b/source/blender/editors/space_text/text_format.h
index 833f40730ad..fe7b3328030 100644
--- a/source/blender/editors/space_text/text_format.h
+++ b/source/blender/editors/space_text/text_format.h
@@ -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',
diff --git a/source/blender/editors/space_text/text_format_lua.c b/source/blender/editors/space_text/text_format_lua.c
index 0cd2d9baa0b..cdc43246a2f 100644
--- a/source/blender/editors/space_text/text_format_lua.c
+++ b/source/blender/editors/space_text/text_format_lua.c
@@ -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

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list