[Bf-blender-cvs] [28051e27547] functions: rerun clang format on functions folder

Jacques Lucke noreply at git.blender.org
Wed May 1 18:03:25 CEST 2019


Commit: 28051e27547d64879c8e27e42db83076dbb166bd
Author: Jacques Lucke
Date:   Wed May 1 18:01:03 2019 +0200
Branches: functions
https://developer.blender.org/rB28051e27547d64879c8e27e42db83076dbb166bd

rerun clang format on functions folder

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

M	source/blender/functions/backends/llvm/builder.hpp
M	source/blender/functions/backends/llvm/ir_for_tuple_call.cpp
M	source/blender/functions/backends/llvm/llvm_types.cpp
M	source/blender/functions/frontends/data_flow_nodes/builder.cpp
M	source/blender/functions/functions/lists.cpp
M	source/blender/functions/functions/scalar_math.cpp

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

diff --git a/source/blender/functions/backends/llvm/builder.hpp b/source/blender/functions/backends/llvm/builder.hpp
index 5dfc46c15ba..c0f776faa72 100644
--- a/source/blender/functions/backends/llvm/builder.hpp
+++ b/source/blender/functions/backends/llvm/builder.hpp
@@ -35,7 +35,7 @@ class CodeBuilder {
   }
 
   /* Getters
-     ***************************************/
+   ***************************************/
 
   llvm::LLVMContext &getContext()
   {
@@ -98,7 +98,7 @@ class CodeBuilder {
   }
 
   /* Value Builders
-     **************************************/
+   **************************************/
 
   llvm::Value *getUndef(llvm::Type *type)
   {
@@ -127,7 +127,7 @@ class CodeBuilder {
   }
 
   /* Create new blocks
-     **************************************/
+   **************************************/
 
   llvm::BasicBlock *NewBlockInFunction(std::string name)
   {
@@ -141,7 +141,7 @@ class CodeBuilder {
   }
 
   /* Misc
-     **************************************/
+   **************************************/
 
   void SetInsertPoint(llvm::BasicBlock *block)
   {
@@ -152,7 +152,7 @@ class CodeBuilder {
   LLVMTypes types_of_values(const LLVMValues &values);
 
   /* Instruction Builders
-     **************************************/
+   **************************************/
 
   void CreateRet(llvm::Value *value)
   {
diff --git a/source/blender/functions/backends/llvm/ir_for_tuple_call.cpp b/source/blender/functions/backends/llvm/ir_for_tuple_call.cpp
index 817c7588e18..0b36d6d4763 100644
--- a/source/blender/functions/backends/llvm/ir_for_tuple_call.cpp
+++ b/source/blender/functions/backends/llvm/ir_for_tuple_call.cpp
@@ -35,7 +35,7 @@ static llvm::Value *build__stack_allocate_ExecutionContext(CodeBuilder &builder)
   llvm::Value *ctx_ptr = builder.CreateAllocaBytes_VoidPtr(sizeof(ExecutionContext));
 
   builder.CreateCallPointer_RetVoid((void *)run__setup_ExecutionContext_in_buffer,
-                                          {stack_ptr, ctx_ptr});
+                                    {stack_ptr, ctx_ptr});
 
   return ctx_ptr;
 }
diff --git a/source/blender/functions/backends/llvm/llvm_types.cpp b/source/blender/functions/backends/llvm/llvm_types.cpp
index 418c83f157f..500b0f783b5 100644
--- a/source/blender/functions/backends/llvm/llvm_types.cpp
+++ b/source/blender/functions/backends/llvm/llvm_types.cpp
@@ -131,7 +131,7 @@ llvm::Value *PointerLLVMTypeInfo::build_load_ir__relocate(CodeBuilder &builder,
 }
 
 /* Utilities
-   ******************************************/
+ ******************************************/
 
 LLVMTypes types_of_type_infos(const SmallVector<LLVMTypeInfo *> &type_infos,
                               llvm::LLVMContext &context)
diff --git a/source/blender/functions/frontends/data_flow_nodes/builder.cpp b/source/blender/functions/frontends/data_flow_nodes/builder.cpp
index a4f011648e2..4376b0ea20b 100644
--- a/source/blender/functions/frontends/data_flow_nodes/builder.cpp
+++ b/source/blender/functions/frontends/data_flow_nodes/builder.cpp
@@ -179,7 +179,8 @@ DFGB_Socket BTreeGraphBuilder::lookup_socket(struct bNodeSocket *bsocket)
   return m_socket_map.lookup(bsocket);
 }
 
-bool BTreeGraphBuilder::check_if_sockets_are_mapped(struct bNode *bnode, bSocketList bsockets) const
+bool BTreeGraphBuilder::check_if_sockets_are_mapped(struct bNode *bnode,
+                                                    bSocketList bsockets) const
 {
   int index = 0;
   for (bNodeSocket *bsocket : bsockets) {
diff --git a/source/blender/functions/functions/lists.cpp b/source/blender/functions/functions/lists.cpp
index e194740b04a..a223f907638 100644
--- a/source/blender/functions/functions/lists.cpp
+++ b/source/blender/functions/functions/lists.cpp
@@ -179,7 +179,7 @@ SharedFunction build_list_length_function(SharedType &base_type, SharedType &lis
 }
 
 /* Build List Functions
-   *************************************/
+ *************************************/
 
 struct ListFunctions {
   FunctionPerType m_create_empty;
@@ -216,7 +216,7 @@ LAZY_INIT_REF_STATIC__NO_ARG(ListFunctions, get_list_functions)
 }
 
 /* Access List Functions
-   *************************************/
+ *************************************/
 
 SharedFunction &GET_FN_empty_list(SharedType &base_type)
 {
diff --git a/source/blender/functions/functions/scalar_math.cpp b/source/blender/functions/functions/scalar_math.cpp
index 295412c2121..e020a3ab974 100644
--- a/source/blender/functions/functions/scalar_math.cpp
+++ b/source/blender/functions/functions/scalar_math.cpp
@@ -61,7 +61,7 @@ class GenAddFloats : public LLVMBuildIRBody {
 LAZY_INIT_REF__NO_ARG(SharedFunction, GET_FN_add_floats)
 {
   auto fn = get_math_function__two_inputs("Add Floats");
-  //fn->add_body(new AddFloats());
+  // fn->add_body(new AddFloats());
   fn->add_body(new GenAddFloats());
   return fn;
 }



More information about the Bf-blender-cvs mailing list