mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:58:28 +00:00
Style: No break before list brace
clang-format does not handle that well *at all*. For the reference, found the relevant pieces of code with: `ag "=[ "$'\t'"]?"$'\n'"[ "$'\t'"]?{" --ignore=thirdparty`
This commit is contained in:
parent
3890256fc5
commit
40323407df
|
@ -612,8 +612,7 @@ uint64_t _OS::get_unix_time_from_datetime(Dictionary datetime) const {
|
|||
static_cast<unsigned int>(datetime[YEAR_KEY]):0);
|
||||
|
||||
/// How many days come before each month (0-12)
|
||||
static const unsigned short int DAYS_PAST_THIS_YEAR_TABLE[2][13] =
|
||||
{
|
||||
static const unsigned short int DAYS_PAST_THIS_YEAR_TABLE[2][13] = {
|
||||
/* Normal years. */
|
||||
{ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
|
||||
/* Leap years. */
|
||||
|
|
|
@ -44,8 +44,7 @@ static uint8_t rj_sbox_inv(uint8_t);
|
|||
|
||||
#ifdef BACK_TO_TABLES
|
||||
|
||||
static const uint8_t sbox[256] =
|
||||
{
|
||||
static const uint8_t sbox[256] = {
|
||||
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,
|
||||
0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
|
||||
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
|
||||
|
@ -79,8 +78,7 @@ static const uint8_t sbox[256] =
|
|||
0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68,
|
||||
0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16
|
||||
};
|
||||
static const uint8_t sboxinv[256] =
|
||||
{
|
||||
static const uint8_t sboxinv[256] = {
|
||||
0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38,
|
||||
0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb,
|
||||
0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
|
||||
|
|
|
@ -568,8 +568,7 @@ void InputDefault::set_mouse_in_window(bool p_in_window) {
|
|||
}
|
||||
|
||||
// from github.com/gabomdq/SDL_GameControllerDB
|
||||
static const char *s_ControllerMappings [] =
|
||||
{
|
||||
static const char *s_ControllerMappings [] = {
|
||||
#ifdef WINDOWS_ENABLED
|
||||
"00f00300000000000000504944564944,RetroUSB.com RetroPad,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,",
|
||||
"00f0f100000000000000504944564944,RetroUSB.com Super RetroPort,a:b1,b:b5,x:b0,y:b4,back:b2,start:b3,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,",
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
|
||||
#include "typedefs.h"
|
||||
|
||||
static const uint32_t tables[256*3] =
|
||||
{
|
||||
static const uint32_t tables[256*3] = {
|
||||
/* y_table */
|
||||
0x7FFFFFEDU,
|
||||
0x7FFFFFEFU,
|
||||
|
|
|
@ -1993,8 +1993,7 @@ void ShaderGraph::_plot_curve(const Vector2& p_a,const Vector2& p_b,const Vector
|
|||
|
||||
/* compose the basis and geometry matrices */
|
||||
|
||||
static const float CR_basis[4][4] =
|
||||
{
|
||||
static const float CR_basis[4][4] = {
|
||||
{ -0.5, 1.5, -1.5, 0.5 },
|
||||
{ 1.0, -2.5, 2.0, -0.5 },
|
||||
{ -0.5, 0.0, 0.5, 0.0 },
|
||||
|
|
|
@ -464,8 +464,7 @@ void GraphCurveMapEdit::_plot_curve(const Vector2& p_a,const Vector2& p_b,const
|
|||
|
||||
/* compose the basis and geometry matrices */
|
||||
|
||||
static const float CR_basis[4][4] =
|
||||
{
|
||||
static const float CR_basis[4][4] = {
|
||||
{ -0.5, 1.5, -1.5, 0.5 },
|
||||
{ 1.0, -2.5, 2.0, -0.5 },
|
||||
{ -0.5, 0.0, 0.5, 0.0 },
|
||||
|
|
Loading…
Reference in a new issue