Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-10 10:19:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-10 14:04:51 +0300
commit2abfcebb0eb7989e3d1e7d03f37ecf5c088210af (patch)
treee7a1ad5912b4661d4ece743f4f7fd86e6bf4d3c4 /source/blender/depsgraph
parentc735aca42e9f5961fec7e5d5fc196b5bd6b85f56 (diff)
Cleanup: use C comments for descriptive text
Follow our code style guide by using C-comments for text descriptions.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc20
-rw-r--r--source/blender/depsgraph/intern/depsgraph_query.cc4
-rw-r--r--source/blender/depsgraph/intern/depsgraph_type.cc2
-rw-r--r--source/blender/depsgraph/intern/node/deg_node_operation.h4
4 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc
index 98a2d09c352..42c1fcba1bb 100644
--- a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc
+++ b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc
@@ -66,8 +66,8 @@ void deg_debug_fprintf(const DebugContext &ctx, const char *fmt, ...)
inline double get_node_time(const DebugContext & /*ctx*/, const Node *node)
{
- // TODO(sergey): Figure out a nice way to define which exact time
- // we want to show.
+ /* TODO(sergey): Figure out a nice way to define which exact time
+ * we want to show. */
return node->stats.current_time;
}
@@ -97,7 +97,7 @@ string gnuplotify_name(const string &name)
void write_stats_data(const DebugContext &ctx)
{
- // Fill in array of all stats which are to be displayed.
+ /* Fill in array of all stats which are to be displayed. */
Vector<StatsEntry> stats;
stats.reserve(ctx.graph->id_nodes.size());
for (const IDNode *id_node : ctx.graph->id_nodes) {
@@ -110,12 +110,12 @@ void write_stats_data(const DebugContext &ctx)
entry.time = time;
stats.append(entry);
}
- // Sort the data.
+ /* Sort the data. */
std::sort(stats.begin(), stats.end(), stat_entry_comparator);
- // We limit number of entries, otherwise things become unreadable.
+ /* We limit number of entries, otherwise things become unreadable. */
stats.resize(min_ii(stats.size(), 32));
std::reverse(stats.begin(), stats.end());
- // Print data to the file stream.
+ /* Print data to the file stream. */
deg_debug_fprintf(ctx, "$data << EOD" NL);
for (const StatsEntry &entry : stats) {
deg_debug_fprintf(ctx,
@@ -129,14 +129,14 @@ void write_stats_data(const DebugContext &ctx)
void deg_debug_stats_gnuplot(const DebugContext &ctx)
{
- // Data itself.
+ /* Data itself. */
write_stats_data(ctx);
- // Optional label.
+ /* Optional label. */
if (ctx.label && ctx.label[0]) {
deg_debug_fprintf(ctx, "set title \"%s\"" NL, ctx.label);
}
- // Rest of the commands.
- // TODO(sergey): Need to decide on the resolution somehow.
+ /* Rest of the commands.
+ * TODO(sergey): Need to decide on the resolution somehow. */
deg_debug_fprintf(ctx, "set terminal pngcairo size 1920,1080" NL);
deg_debug_fprintf(ctx, "set output \"%s\"" NL, ctx.output_filename);
deg_debug_fprintf(ctx, "set grid" NL);
diff --git a/source/blender/depsgraph/intern/depsgraph_query.cc b/source/blender/depsgraph/intern/depsgraph_query.cc
index fc9ed9a6ab9..d0eedd6d811 100644
--- a/source/blender/depsgraph/intern/depsgraph_query.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query.cc
@@ -25,12 +25,12 @@
#include "MEM_guardedalloc.h"
-#include <string.h> // XXX: memcpy
+#include <string.h> /* XXX: memcpy */
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
-#include "BKE_action.h" // XXX: BKE_pose_channel_find_name
+#include "BKE_action.h" /* XXX: BKE_pose_channel_find_name */
#include "BKE_customdata.h"
#include "BKE_idtype.h"
#include "BKE_main.h"
diff --git a/source/blender/depsgraph/intern/depsgraph_type.cc b/source/blender/depsgraph/intern/depsgraph_type.cc
index 25e9a4643b3..07664cb4f0b 100644
--- a/source/blender/depsgraph/intern/depsgraph_type.cc
+++ b/source/blender/depsgraph/intern/depsgraph_type.cc
@@ -23,7 +23,7 @@
* Defines and code for core node types.
*/
-#include <cstdlib> // for BLI_assert()
+#include <cstdlib> /* for BLI_assert() */
#include "BLI_utildefines.h"
diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h
index 52b6c9a753b..40369de08f5 100644
--- a/source/blender/depsgraph/intern/node/deg_node_operation.h
+++ b/source/blender/depsgraph/intern/node/deg_node_operation.h
@@ -35,7 +35,7 @@ namespace deg {
struct ComponentNode;
/* Evaluation Operation for atomic operation */
-// XXX: move this to another header that can be exposed?
+/* XXX: move this to another header that can be exposed? */
typedef function<void(struct ::Depsgraph *)> DepsEvalOperationCb;
/* Identifiers for common operations (as an enum). */
@@ -143,7 +143,7 @@ enum class OperationCode {
*
* - "DONE" This noop is used to signal that the bone's final pose
* transform can be read by others. */
- // TODO: deform mats could get calculated in the final_transform ops...
+ /* TODO: deform mats could get calculated in the final_transform ops... */
BONE_READY,
BONE_DONE,
/* B-Bone segment shape computation (after DONE) */