diff options
author | 2024-06-22 15:41:53 -0700 | |
---|---|---|
committer | 2024-07-07 10:58:27 -0700 | |
commit | 2bf4c772393460d1830fbed203a65197e5999a6c (patch) | |
tree | a2d42bfe5193ec7a603aa2b540beae56ed6493cf /system/include/macros.h | |
parent | ace0cd51f43c3b1f8709ae962899b3f539cb0965 (diff) |
Format: apply clang rules
Restore SpacesBeforeTrailingComments to 2 to match current style
Then run clang-format -i **/**.{c,h,cc,cpp,hpp}
Then fix a bunch of typo (reported by gerrit)
Then fix unnecessary multiline string
Then fix whitespace for disabled clang format (reported by cpplint)
This is no-op
Bug: 311772251
Test: mmm packages/modules/Bluetooth
Flag: Exempt Format only
Change-Id: If135447803a40a2a07d4630ba2195e08ef8d250c
Diffstat (limited to 'system/include/macros.h')
-rw-r--r-- | system/include/macros.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/system/include/macros.h b/system/include/macros.h index 68dd4df3f9..1bf83cd7b9 100644 --- a/system/include/macros.h +++ b/system/include/macros.h @@ -25,16 +25,13 @@ case code: \ return #code -#define CASE_RETURN_STRING(enumerator) \ - case enumerator: \ - return fmt::format(#enumerator "(0x{:x})", \ - static_cast<uint64_t>(enumerator)) +#define CASE_RETURN_STRING(enumerator) \ + case enumerator: \ + return fmt::format(#enumerator "(0x{:x})", static_cast<uint64_t>(enumerator)) -#define CASE_RETURN_STRING_HEX04(enumerator) \ - case enumerator: \ - return fmt::format(#enumerator "(0x{:04x})", \ - static_cast<uint64_t>(enumerator)) +#define CASE_RETURN_STRING_HEX04(enumerator) \ + case enumerator: \ + return fmt::format(#enumerator "(0x{:04x})", static_cast<uint64_t>(enumerator)) #define RETURN_UNKNOWN_TYPE_STRING(type, variable) \ - return fmt::format("Unknown {}(0x{:x})", #type, \ - static_cast<uint64_t>(variable)) + return fmt::format("Unknown {}(0x{:x})", #type, static_cast<uint64_t>(variable)) |