Cleanup: clang-format

Add ccl_gpu_kernel_postfix as a statement macro to prevent the following
declarations from being indented.
This commit is contained in:
Campbell Barton
2022-04-04 12:25:03 +10:00
parent f6a20fca5e
commit 27fea7a3a5
7 changed files with 11 additions and 9 deletions

View File

@@ -269,6 +269,7 @@ ForEachMacros:
StatementMacros:
- PyObject_HEAD
- PyObject_VAR_HEAD
- ccl_gpu_kernel_postfix
MacroBlockBegin: "^BSDF_CLOSURE_CLASS_BEGIN$"
MacroBlockEnd: "^BSDF_CLOSURE_CLASS_END$"

View File

@@ -97,7 +97,7 @@ ccl_device_inline float mat22_determinant(const float4 m)
}
/* Inverse of a 2x2 matrix encoded in a row-major order float4 */
ccl_device_inline float mat22_inverse(const float4 m, ccl_private float4& m_inverse)
ccl_device_inline float mat22_inverse(const float4 m, ccl_private float4 &m_inverse)
{
float det = mat22_determinant(m);
if (fabsf(det) < MNEE_MIN_DETERMINANT)

View File

@@ -303,7 +303,7 @@ int UI_pie_menu_invoke_from_rna_enum(struct bContext *C,
* - Julian (Feb 2016)
* \{ */
struct PieMenuLevelData {
struct PieMenuLevelData {
char title[UI_MAX_NAME_STR]; /* parent pie title, copied for level */
int icon; /* parent pie icon, copied for level */
int totitem; /* total count of *remaining* items */
@@ -313,7 +313,7 @@ int UI_pie_menu_invoke_from_rna_enum(struct bContext *C,
const char *propname;
IDProperty *properties;
wmOperatorCallContext context, flag;
} ;
};
/**
* Invokes a new pie menu for a new level.

View File

@@ -25,7 +25,8 @@ namespace blender::ed::outliner {
/* Convenience/readability. */
template<typename T> using List = ListBaseWrapper<T>;
TreeDisplayOverrideLibraryProperties::TreeDisplayOverrideLibraryProperties(SpaceOutliner &space_outliner)
TreeDisplayOverrideLibraryProperties::TreeDisplayOverrideLibraryProperties(
SpaceOutliner &space_outliner)
: AbstractTreeDisplay(space_outliner)
{
}