internal: clang-tidy & ifdef changes

This commit is contained in:
Honkazel 2025-11-12 12:49:11 +05:00
parent cadf922417
commit 55c2abd2c9
2 changed files with 1 additions and 7 deletions

View file

@ -1,11 +1,5 @@
#pragma once
// because C/C++ VS Code intellisense is stupid with includes, we will suppress them here.
// This suppresses all "include file not found" errors.
#ifdef __INTELLISENSE__
#pragma diag_suppress 1696
#endif
#include <getopt.h>
#include <libinput.h>
#include <linux/input-event-codes.h>

View file

@ -33,7 +33,7 @@
} else if (level == LOG || level == INFO || level == TRACE) { \
oss << "[" << EXTRACT_CLASS_NAME() << "] "; \
} \
if constexpr (std::tuple_size<decltype(std::make_tuple(__VA_ARGS__))>::value == 1 && std::is_same_v<decltype(__VA_ARGS__), std::string>) { \
if constexpr (std::tuple_size_v<decltype(std::make_tuple(__VA_ARGS__))> == 1 && std::is_same_v<decltype(__VA_ARGS__), std::string>) { \
oss << __VA_ARGS__; \
Debug::log(level, oss.str()); \
} else { \