diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/depsgraph/intern/builder/deg_builder_rna.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_rna.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_rna.h | 72 |
1 files changed, 35 insertions, 37 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.h b/source/blender/depsgraph/intern/builder/deg_builder_rna.h index 5e121476087..e8dbd7fb523 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_rna.h +++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.h @@ -41,58 +41,56 @@ class RNANodeQueryIDData; * interested in a result of the given property or whether we are linking some * dependency to that property. */ enum class RNAPointerSource { - /* Query will return pointer to an entry operation of component which is - * responsible for evaluation of the given property. */ - ENTRY, - /* Query will return pointer to an exit operation of component which is - * responsible for evaluation of the given property. - * More precisely, it will return operation at which the property is known - * to be evaluated. */ - EXIT, + /* Query will return pointer to an entry operation of component which is + * responsible for evaluation of the given property. */ + ENTRY, + /* Query will return pointer to an exit operation of component which is + * responsible for evaluation of the given property. + * More precisely, it will return operation at which the property is known + * to be evaluated. */ + EXIT, }; /* A helper structure which wraps all fields needed to find a node inside of * the dependency graph. */ class RNANodeIdentifier { -public: - RNANodeIdentifier(); - - /* Check whether this identifier is valid and usable. */ - bool is_valid() const; - - ID *id; - NodeType type; - const char *component_name; - OperationCode operation_code; - const char *operation_name; - int operation_name_tag; + public: + RNANodeIdentifier(); + + /* Check whether this identifier is valid and usable. */ + bool is_valid() const; + + ID *id; + NodeType type; + const char *component_name; + OperationCode operation_code; + const char *operation_name; + int operation_name_tag; }; /* Helper class which performs optimized lookups of a node within a given * dependency graph which satisfies given RNA pointer or RAN path. */ class RNANodeQuery { -public: - RNANodeQuery(Depsgraph *depsgraph); - ~RNANodeQuery(); + public: + RNANodeQuery(Depsgraph *depsgraph); + ~RNANodeQuery(); - Node *find_node(const PointerRNA *ptr, - const PropertyRNA *prop, - RNAPointerSource source); + Node *find_node(const PointerRNA *ptr, const PropertyRNA *prop, RNAPointerSource source); -protected: - Depsgraph *depsgraph_; + protected: + Depsgraph *depsgraph_; - /* Indexed by an ID, returns RNANodeQueryIDData associated with that ID. */ - GHash *id_data_map_; + /* Indexed by an ID, returns RNANodeQueryIDData associated with that ID. */ + GHash *id_data_map_; - /* Construct identifier of the node which correspods given configuration - * of RNA property. */ - RNANodeIdentifier construct_node_identifier(const PointerRNA *ptr, - const PropertyRNA *prop, - RNAPointerSource source); + /* Construct identifier of the node which correspods given configuration + * of RNA property. */ + RNANodeIdentifier construct_node_identifier(const PointerRNA *ptr, + const PropertyRNA *prop, + RNAPointerSource source); - /* Make sure ID data exists for the given ID, and returns it. */ - RNANodeQueryIDData *ensure_id_data(const ID *id); + /* Make sure ID data exists for the given ID, and returns it. */ + RNANodeQueryIDData *ensure_id_data(const ID *id); }; } // namespace DEG |