From 2abfcebb0eb7989e3d1e7d03f37ecf5c088210af Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Oct 2020 18:19:55 +1100 Subject: Cleanup: use C comments for descriptive text Follow our code style guide by using C-comments for text descriptions. --- .../intern/debug/deg_debug_stats_gnuplot.cc | 20 ++++++++++---------- source/blender/depsgraph/intern/depsgraph_query.cc | 4 ++-- source/blender/depsgraph/intern/depsgraph_type.cc | 2 +- .../depsgraph/intern/node/deg_node_operation.h | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'source/blender/depsgraph') 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 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 // XXX: memcpy +#include /* 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 // for BLI_assert() +#include /* 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 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) */ -- cgit v1.2.3