summaryrefslogtreecommitdiff
path: root/src/macros.hpp
diff options
context:
space:
mode:
authorFrançois Conzelmann <45296195+zephvr@users.noreply.github.com>2023-12-06 23:54:56 +0100
committerGitHub <noreply@github.com>2023-12-06 22:54:56 +0000
commit4a42344e9748d2b44c55798ddc3fa41448533c4e (patch)
treef8a06c575a650be05d629555f4e127115dffe470 /src/macros.hpp
parent5489f9f07a73c6b5b97702731a5092463a01fb5b (diff)
style/ci: apply clang-format and verify it in ci (#4039)
* style: apply clang-format * ci: add new clang-format job to CI
Diffstat (limited to 'src/macros.hpp')
-rw-r--r--src/macros.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/macros.hpp b/src/macros.hpp
index c2eb98db..19b4cbc6 100644
--- a/src/macros.hpp
+++ b/src/macros.hpp
@@ -44,7 +44,7 @@
if (!(expr)) { \
Debug::log(CRIT, "\n==========================================================================================\nASSERTION FAILED! \n\n{}\n\nat: line {} in {}", \
std::format(reason, ##__VA_ARGS__), __LINE__, \
- ([]() constexpr->std::string { return std::string(__FILE__).substr(std::string(__FILE__).find_last_of('/') + 1); })()); \
+ ([]() constexpr -> std::string { return std::string(__FILE__).substr(std::string(__FILE__).find_last_of('/') + 1); })()); \
printf("Assertion failed! See the log in /tmp/hypr/hyprland.log for more info."); \
raise(SIGABRT); \
}
@@ -63,9 +63,7 @@
}
#define FORMAT_FLAG(spec__, flag__) \
- case spec__: \
- (flag__) = true; \
- break;
+ case spec__: (flag__) = true; break;
#define FORMAT_NUMBER(buf__) \
case '0': \
@@ -77,9 +75,7 @@
case '6': \
case '7': \
case '8': \
- case '9': \
- (buf__).push_back(*it); \
- break;
+ case '9': (buf__).push_back(*it); break;
#if ISDEBUG
#define UNREACHABLE() \