Clang formatter: add indent to wrapped functions names. (#548)

This commit is contained in:
あく 2021-07-01 03:45:20 +03:00 committed by GitHub
parent a0e1e42f2d
commit 8211432685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 15 deletions

View File

@ -41,7 +41,7 @@ IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false IndentCaseLabels: false
IndentPPDirectives: None IndentPPDirectives: None
IndentWidth: 4 IndentWidth: 4
IndentWrappedFunctionNames: false IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave JavaScriptQuotes: Leave
JavaScriptWrapImports: true JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false KeepEmptyLinesAtTheStartOfBlocks: false

View File

@ -15,8 +15,10 @@ public:
private: private:
static bool DoWiegandConversion(); static bool DoWiegandConversion();
static unsigned long static unsigned long GetCardId(
GetCardId(volatile unsigned long* codehigh, volatile unsigned long* codelow, char bitlength); volatile unsigned long* codehigh,
volatile unsigned long* codelow,
char bitlength);
static volatile unsigned long _cardTempHigh; static volatile unsigned long _cardTempHigh;
static volatile unsigned long _cardTemp; static volatile unsigned long _cardTemp;

View File

@ -37,8 +37,11 @@ MenuItem* menu_item_alloc_menu(const char* label, Icon* icon) {
return menu_item; return menu_item;
} }
MenuItem* MenuItem* menu_item_alloc_function(
menu_item_alloc_function(const char* label, Icon* icon, MenuItemCallback callback, void* context) { const char* label,
Icon* icon,
MenuItemCallback callback,
void* context) {
MenuItem* menu_item = menu_item_alloc(); MenuItem* menu_item = menu_item_alloc();
menu_item->type = MenuItemTypeFunction; menu_item->type = MenuItemTypeFunction;

View File

@ -16,8 +16,11 @@ ARRAY_DEF(MenuItemArray, MenuItem*, M_PTR_OPLIST);
MenuItem* menu_item_alloc_menu(const char* label, Icon* icon); MenuItem* menu_item_alloc_menu(const char* label, Icon* icon);
MenuItem* MenuItem* menu_item_alloc_function(
menu_item_alloc_function(const char* label, Icon* icon, MenuItemCallback callback, void* context); const char* label,
Icon* icon,
MenuItemCallback callback,
void* context);
void menu_item_release(MenuItem* menu_item); void menu_item_release(MenuItem* menu_item);

View File

@ -18,8 +18,9 @@ static void test_teardown(void) {
irda_free_decoder(decoder); irda_free_decoder(decoder);
} }
static void static void compare_message_results(
compare_message_results(const IrdaMessage* message_decoded, const IrdaMessage* message_expected) { const IrdaMessage* message_decoded,
const IrdaMessage* message_expected) {
mu_check(message_decoded->protocol == message_expected->protocol); mu_check(message_decoded->protocol == message_expected->protocol);
mu_check(message_decoded->command == message_expected->command); mu_check(message_decoded->command == message_expected->command);
mu_check(message_decoded->address == message_expected->address); mu_check(message_decoded->address == message_expected->address);