[FL-3867] Code formatting update (#3765)

* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard:        c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2024-07-15 07:38:49 +03:00
committed by GitHub
parent a5e89315ae
commit ffa3996a5e
475 changed files with 3187 additions and 3159 deletions

View File

@@ -85,4 +85,4 @@ static const FlipperAppPluginDescriptor gallagher_plugin_descriptor = {
/* Plugin entry point */
const FlipperAppPluginDescriptor* gallagher_plugin_ep(void) {
return &gallagher_plugin_descriptor;
}
}

View File

@@ -5,9 +5,10 @@
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
#define TAG "HI!"
#define KEY_LENGTH 6
#define KEY_LENGTH 6
#define HI_KEY_TO_GEN 5
#define UID_LENGTH 7
#define UID_LENGTH 7
typedef struct {
uint64_t a;

View File

@@ -5,6 +5,7 @@
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
#define TAG "Microel"
#define KEY_LENGTH 6
#define UID_LENGTH 4
@@ -227,4 +228,4 @@ static const FlipperAppPluginDescriptor microel_plugin_descriptor = {
/* Plugin entry point - must return a pointer to const descriptor */
const FlipperAppPluginDescriptor* microel_plugin_ep(void) {
return &microel_plugin_descriptor;
}
}

View File

@@ -5,9 +5,10 @@
#include <nfc/protocols/mf_classic/mf_classic_poller_sync.h>
#define TAG "MiZIP"
#define KEY_LENGTH 6
#define KEY_LENGTH 6
#define MIZIP_KEY_TO_GEN 5
#define UID_LENGTH 4
#define UID_LENGTH 4
typedef struct {
uint64_t a;

View File

@@ -62,18 +62,18 @@ static const char* opal_usages[14] = {
// Opal file 0x7 structure. Assumes a little-endian CPU.
typedef struct FURI_PACKED {
uint32_t serial : 32;
uint8_t check_digit : 4;
bool blocked : 1;
uint16_t txn_number : 16;
int32_t balance : 21;
uint16_t days : 15;
uint16_t minutes : 11;
uint8_t mode : 3;
uint16_t usage : 4;
bool auto_topup : 1;
uint32_t serial : 32;
uint8_t check_digit : 4;
bool blocked : 1;
uint16_t txn_number : 16;
int32_t balance : 21;
uint16_t days : 15;
uint16_t minutes : 11;
uint8_t mode : 3;
uint16_t usage : 4;
bool auto_topup : 1;
uint8_t weekly_journeys : 4;
uint16_t checksum : 16;
uint16_t checksum : 16;
} OpalFile;
static_assert(sizeof(OpalFile) == 16, "OpalFile");

View File

@@ -260,4 +260,4 @@ static const FlipperAppPluginDescriptor troika_plugin_descriptor = {
/* Plugin entry point - must return a pointer to const descriptor */
const FlipperAppPluginDescriptor* troika_plugin_ep(void) {
return &troika_plugin_descriptor;
}
}

View File

@@ -40,7 +40,7 @@ bool parse_datetime(uint16_t date, DateTime* result) {
result->year = 2000 + (date >> 9);
result->month = date >> 5 & 0x0F;
result->day = date & 0x1F;
return (date != 0);
return date != 0;
}
static bool umarsh_parse(const NfcDevice* device, FuriString* parsed_data) {

View File

@@ -194,4 +194,4 @@ static const FlipperAppPluginDescriptor washcity_plugin_descriptor = {
/* Plugin entry point - must return a pointer to const descriptor */
const FlipperAppPluginDescriptor* washcity_plugin_ep(void) {
return &washcity_plugin_descriptor;
}
}