Cleanup: resolve check_spelling & check_licenses warnings
This commit is contained in:
@@ -1263,7 +1263,7 @@ GHOST_EventKey *GHOST_SystemWin32::processKeyEvent(GHOST_WindowWin32 *window, RA
|
|||||||
constexpr USHORT ALTGR_MAKE_CODE = 0x38;
|
constexpr USHORT ALTGR_MAKE_CODE = 0x38;
|
||||||
|
|
||||||
/* If the keyboard layout includes AltGr and the virtual key is Control, yet the
|
/* If the keyboard layout includes AltGr and the virtual key is Control, yet the
|
||||||
* scancode is actually for Right Alt (ALTGR_MAKE_CODE scan code with E0 prefix).
|
* scan-code is actually for Right Alt (ALTGR_MAKE_CODE scan code with E0 prefix).
|
||||||
* Ignore these, so treating AltGR as regular Alt. #68256 */
|
* Ignore these, so treating AltGR as regular Alt. #68256 */
|
||||||
if (system->m_hasAltGr && vk == VK_CONTROL && raw.data.keyboard.MakeCode == ALTGR_MAKE_CODE &&
|
if (system->m_hasAltGr && vk == VK_CONTROL && raw.data.keyboard.MakeCode == ALTGR_MAKE_CODE &&
|
||||||
(raw.data.keyboard.Flags & RI_KEY_E0))
|
(raw.data.keyboard.Flags & RI_KEY_E0))
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
@@ -31,7 +30,7 @@ namespace blender::animrig::versioning {
|
|||||||
*
|
*
|
||||||
* NOTE: this is semi-duplicated from `Action::is_action_layered()`, but with
|
* NOTE: this is semi-duplicated from `Action::is_action_layered()`, but with
|
||||||
* tweaks to also recognize ultra-legacy (pre-Animato) data. Because this needs access to
|
* tweaks to also recognize ultra-legacy (pre-Animato) data. Because this needs access to
|
||||||
* depreacted DNA fields, which is ok here in the versioning code, the other "is this legacy or
|
* deprecated DNA fields, which is ok here in the versioning code, the other "is this legacy or
|
||||||
* layered?" functions do not check for pre-Animato data.
|
* layered?" functions do not check for pre-Animato data.
|
||||||
*
|
*
|
||||||
* \see Action::is_action_layered()
|
* \see Action::is_action_layered()
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ void tag_action_user_for_slotted_actions_conversion(ID &animated_id)
|
|||||||
|
|
||||||
void tag_action_users_for_slotted_actions_conversion(Main &bmain)
|
void tag_action_users_for_slotted_actions_conversion(Main &bmain)
|
||||||
{
|
{
|
||||||
/* This function is only called when the blendfile is old enough to NOT use
|
/* This function is only called when the blend-file is old enough to NOT use
|
||||||
* slotted Actions, so we can safely tag anything that uses an Action. */
|
* slotted Actions, so we can safely tag anything that uses an Action. */
|
||||||
|
|
||||||
auto flag_adt = [](ID &animated_id,
|
auto flag_adt = [](ID &animated_id,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ TEST(animrig_versioning, action_is_layered)
|
|||||||
<< "Layered Actions with forward-compat data should be considered 'layered'";
|
<< "Layered Actions with forward-compat data should be considered 'layered'";
|
||||||
}
|
}
|
||||||
|
|
||||||
{ /* Completely zero'ed out Action. */
|
{ /* Completely zeroed out Action. */
|
||||||
bAction action = {{nullptr}};
|
bAction action = {{nullptr}};
|
||||||
EXPECT_TRUE(action_is_layered(action)) << "Zero'ed-out Actions should be considered 'layered'";
|
EXPECT_TRUE(action_is_layered(action)) << "Zero'ed-out Actions should be considered 'layered'";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ static void action_blend_read_data(BlendDataReader *reader, ID *id)
|
|||||||
BLI_listbase_clear(&action.curves);
|
BLI_listbase_clear(&action.curves);
|
||||||
BLI_listbase_clear(&action.groups);
|
BLI_listbase_clear(&action.groups);
|
||||||
|
|
||||||
/* Should never be stored as part of the forward-compatable data in a
|
/* Should never be stored as part of the forward-compatible data in a
|
||||||
* layered action, and thus should always be empty here. */
|
* layered action, and thus should always be empty here. */
|
||||||
BLI_assert(BLI_listbase_is_empty(&action.chanbase));
|
BLI_assert(BLI_listbase_is_empty(&action.chanbase));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1396,7 +1396,7 @@ static void fcurve_add_to_list(
|
|||||||
* is not relevant, BUT do not free the IPO-Curve itself...
|
* is not relevant, BUT do not free the IPO-Curve itself...
|
||||||
*
|
*
|
||||||
* \param `id`: data-block that the IPO-Curve is attached to and/or which the new
|
* \param `id`: data-block that the IPO-Curve is attached to and/or which the new
|
||||||
* datapaths will start from. May be null, which may impact the datapaths of the
|
* data-paths will start from. May be null, which may impact the data-paths of the
|
||||||
* created F-Curves in some cases.
|
* created F-Curves in some cases.
|
||||||
* \param actname: name of Action-Channel (if applicable) that IPO-Curve's IPO-block belonged to.
|
* \param actname: name of Action-Channel (if applicable) that IPO-Curve's IPO-block belonged to.
|
||||||
* \param constname: name of Constraint-Channel (if applicable)
|
* \param constname: name of Constraint-Channel (if applicable)
|
||||||
@@ -1695,7 +1695,7 @@ static void icu_to_fcurves(ID *id,
|
|||||||
* it is given two lists, which it will perform driver/animation-data separation.
|
* it is given two lists, which it will perform driver/animation-data separation.
|
||||||
*
|
*
|
||||||
* \param `id`: Data-block that the IPO-Curve is attached to and/or which the
|
* \param `id`: Data-block that the IPO-Curve is attached to and/or which the
|
||||||
* new datapaths will start from. May be null, which may impact the datapaths of
|
* new data-paths will start from. May be null, which may impact the data-paths of
|
||||||
* the created F-Curves in some cases.
|
* the created F-Curves in some cases.
|
||||||
* \param `actname`: Contrary to what you might think, this is not the name of
|
* \param `actname`: Contrary to what you might think, this is not the name of
|
||||||
* an action. I (Nathan) don't know what it *is*, but I'm leaving this note here
|
* an action. I (Nathan) don't know what it *is*, but I'm leaving this note here
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#define _BLI_CONCAT(MACRO_ARG1, MACRO_ARG2) _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2)
|
#define _BLI_CONCAT(MACRO_ARG1, MACRO_ARG2) _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2)
|
||||||
#define BLI_kdtree_nd_(id) _BLI_CONCAT(KDTREE_PREFIX_ID, _##id)
|
#define BLI_kdtree_nd_(id) _BLI_CONCAT(KDTREE_PREFIX_ID, _##id)
|
||||||
|
|
||||||
/* For autocomplete/clangd */
|
/* For auto-complete / `clangd`. */
|
||||||
#ifndef KD_DIMS
|
#ifndef KD_DIMS
|
||||||
# define KD_DIMS 0
|
# define KD_DIMS 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -9,41 +9,41 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
# define M_PI 3.14159265358979323846 /* pi */
|
# define M_PI 3.14159265358979323846 /* `pi` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_PI_2
|
#ifndef M_PI_2
|
||||||
# define M_PI_2 1.57079632679489661923 /* pi/2 */
|
# define M_PI_2 1.57079632679489661923 /* `pi/2` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_PI_4
|
#ifndef M_PI_4
|
||||||
# define M_PI_4 0.78539816339744830962 /* pi/4 */
|
# define M_PI_4 0.78539816339744830962 /* `pi/4` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_SQRT2
|
#ifndef M_SQRT2
|
||||||
# define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
|
# define M_SQRT2 1.41421356237309504880 /* `sqrt(2)` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_SQRT1_2
|
#ifndef M_SQRT1_2
|
||||||
# define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
|
# define M_SQRT1_2 0.70710678118654752440 /* `1/sqrt(2)` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_SQRT3
|
#ifndef M_SQRT3
|
||||||
# define M_SQRT3 1.73205080756887729352 /* sqrt(3) */
|
# define M_SQRT3 1.73205080756887729352 /* `sqrt(3)` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_SQRT1_3
|
#ifndef M_SQRT1_3
|
||||||
# define M_SQRT1_3 0.57735026918962576450 /* 1/sqrt(3) */
|
# define M_SQRT1_3 0.57735026918962576450 /* `1/sqrt(3)` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_1_PI
|
#ifndef M_1_PI
|
||||||
# define M_1_PI 0.318309886183790671538 /* 1/pi */
|
# define M_1_PI 0.318309886183790671538 /* `1/pi` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_E
|
#ifndef M_E
|
||||||
# define M_E 2.7182818284590452354 /* e */
|
# define M_E 2.7182818284590452354 /* `e` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_LOG2E
|
#ifndef M_LOG2E
|
||||||
# define M_LOG2E 1.4426950408889634074 /* log_2 e */
|
# define M_LOG2E 1.4426950408889634074 /* `log_2 e` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_LOG10E
|
#ifndef M_LOG10E
|
||||||
# define M_LOG10E 0.43429448190325182765 /* log_10 e */
|
# define M_LOG10E 0.43429448190325182765 /* `log_10 e` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_LN2
|
#ifndef M_LN2
|
||||||
# define M_LN2 0.69314718055994530942 /* log_e 2 */
|
# define M_LN2 0.69314718055994530942 /* `log_e 2` */
|
||||||
#endif
|
#endif
|
||||||
#ifndef M_LN10
|
#ifndef M_LN10
|
||||||
# define M_LN10 2.30258509299404568402 /* log_e 10 */
|
# define M_LN10 2.30258509299404568402 /* `log_e 10` */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -571,6 +571,6 @@ ID_Readfile_Data::Tags BLO_readfile_id_runtime_tags(ID &id);
|
|||||||
void BLO_readfile_id_runtime_data_free_all(Main &bmain);
|
void BLO_readfile_id_runtime_data_free_all(Main &bmain);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Free the ID_Readfile_Data of this ID. Does _not_ deal with embeded IDs.
|
* Free the ID_Readfile_Data of this ID. Does _not_ deal with embedded IDs.
|
||||||
*/
|
*/
|
||||||
void BLO_readfile_id_runtime_data_free(ID &id);
|
void BLO_readfile_id_runtime_data_free(ID &id);
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C)
|
|||||||
0.0f,
|
0.0f,
|
||||||
0.0f,
|
0.0f,
|
||||||
"");
|
"");
|
||||||
/* UI_BTYPE_ROUNDBOX's bg color is set in but->col. */
|
/* #UI_BTYPE_ROUNDBOX's background color is set in `but->col`. */
|
||||||
copy_v4_v4_uchar(but->col, report_icon_color);
|
copy_v4_v4_uchar(but->col, report_icon_color);
|
||||||
|
|
||||||
/* Background for the rest of the message. */
|
/* Background for the rest of the message. */
|
||||||
@@ -431,7 +431,7 @@ void uiTemplateStatusInfo(uiLayout *layout, bContext *C)
|
|||||||
0.0f,
|
0.0f,
|
||||||
0.0f,
|
0.0f,
|
||||||
"");
|
"");
|
||||||
/* UI_BTYPE_ROUNDBOX's bg color is set in but->col. */
|
/*# UI_BTYPE_ROUNDBOX's background color is set in `but->col`. */
|
||||||
UI_GetThemeColorType4ubv(TH_INFO_WARNING, SPACE_INFO, but->col);
|
UI_GetThemeColorType4ubv(TH_INFO_WARNING, SPACE_INFO, but->col);
|
||||||
|
|
||||||
if (!warning_message.is_empty()) {
|
if (!warning_message.is_empty()) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
# Script to get all the inactive gitea developers
|
# Script to get all the inactive GITEA developers
|
||||||
# Usage: GITEA_API_TOKEN=<yourtoken> python3 gitea_inactive_developers.py
|
# Usage: GITEA_API_TOKEN=<yourtoken> python3 gitea_inactive_developers.py
|
||||||
#
|
#
|
||||||
# The API Token have the "read:org" or "admin:org" scope.
|
# The API Token have the "read:org" or "admin:org" scope.
|
||||||
|
|||||||
Reference in New Issue
Block a user