diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..d68e5f7 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,45 @@ +--- +Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,cppcoreguidelines-pro-type-member-init,modernize-redundant-void-arg,modernize-use-bool-literals,modernize-use-default-member-init,modernize-use-nullptr,readability-braces-around-statements,readability-redundant-member-init' +WarningsAsErrors: '' +HeaderFilterRegex: '' +FormatStyle: none +CheckOptions: + - key: cert-dcl16-c.NewSuffixes + value: 'L;LL;LU;LLU' + - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField + value: '0' + - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors + value: '1' + - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic + value: '1' + - key: cppcoreguidelines-pro-type-member-init.IgnoreArrays + value: '1' + - key: cppcoreguidelines-pro-type-member-init.UseAssignment + value: '1' + - key: google-readability-function-size.StatementThreshold + value: '800' + - key: google-readability-namespace-comments.ShortNamespaceLines + value: '10' + - key: google-readability-namespace-comments.SpacesBeforeComments + value: '2' + - key: modernize-loop-convert.MaxCopySize + value: '16' + - key: modernize-loop-convert.MinConfidence + value: reasonable + - key: modernize-loop-convert.NamingStyle + value: CamelCase + - key: modernize-pass-by-value.IncludeStyle + value: llvm + - key: modernize-replace-auto-ptr.IncludeStyle + value: llvm + - key: modernize-use-bool-literals.IgnoreMacros + value: '0' + - key: modernize-use-default-member-init.IgnoreMacros + value: '0' + - key: modernize-use-default-member-init.UseAssignment + value: '1' + - key: modernize-use-nullptr.NullMacros + value: 'NULL' + - key: readability-braces-around-statements.ShortStatementLines + value: '0' +... \ No newline at end of file diff --git a/aster/constants.h b/aster/constants.h index d3fbdc0..ce4c10e 100644 --- a/aster/constants.h +++ b/aster/constants.h @@ -49,21 +49,17 @@ constexpr auto ANSI_Cyan = "\u001b[36m"; constexpr auto ANSI_White = "\u001b[37m"; constexpr auto ANSI_Reset = "\u001b[0m"; -using std::forward; -using std::move; -using std::tie; - template using Option = std::optional; template constexpr auto cast(from_t &&_in) { - return static_cast(forward(_in)); + return static_cast(std::forward(_in)); } template constexpr auto recast(from_t &&_in) { - return reinterpret_cast(forward(_in)); + return reinterpret_cast(std::forward(_in)); } constexpr f32 operator""_deg(long double degrees) { diff --git a/aster/global.cpp b/aster/global.cpp index e524574..4a2128b 100644 --- a/aster/global.cpp +++ b/aster/global.cpp @@ -9,7 +9,7 @@ #include #define VMA_IMPLEMENTATION -#include +#include // NOTE: Vulkan Dispatch Loader Storage - Should only appear once. VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE diff --git a/aster/logger.h b/aster/logger.h index a810421..8675c9a 100644 --- a/aster/logger.h +++ b/aster/logger.h @@ -38,6 +38,7 @@ struct Logger { return "[DEBUG]:"; if constexpr (LogLevel == LogType::eVerbose) return "[VERB]: "; + return ""; } template @@ -52,6 +53,7 @@ struct Logger { return ANSI_White; if constexpr (LogLevel == LogType::eVerbose) return ANSI_Blue; + return ANSI_White; } template