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
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false

View File

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

View File

@ -37,8 +37,11 @@ MenuItem* menu_item_alloc_menu(const char* label, Icon* icon) {
return menu_item;
}
MenuItem*
menu_item_alloc_function(const char* label, Icon* icon, MenuItemCallback callback, void* context) {
MenuItem* menu_item_alloc_function(
const char* label,
Icon* icon,
MenuItemCallback callback,
void* context) {
MenuItem* menu_item = menu_item_alloc();
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_function(const char* label, Icon* icon, MenuItemCallback callback, void* context);
MenuItem* menu_item_alloc_function(
const char* label,
Icon* icon,
MenuItemCallback callback,
void* context);
void menu_item_release(MenuItem* menu_item);

View File

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