linter: Add and apply new formatting rules

New rules:
`InsertNewlineAtEOF: true`
`RemoveSemicolon: true`
`RequiresClausePosition: WithPreceding`
This commit is contained in:
Joshua Vandaële 2025-04-23 11:19:14 +02:00
parent 2c54ee94c1
commit bf554edfe0
No known key found for this signature in database
GPG key ID: 5E8F4E7EDBD390EA
9 changed files with 20 additions and 18 deletions

View file

@ -73,7 +73,7 @@ void TruncateToCString(std::string* s);
bool TryParse(const std::string& str, bool* output);
template <typename T>
requires(std::is_integral_v<T> || (std::is_enum_v<T> && !detail::IsBooleanEnum<T>()))
requires(std::is_integral_v<T> || (std::is_enum_v<T> && !detail::IsBooleanEnum<T>()))
bool TryParse(const std::string& str, T* output, int base = 0)
{
char* end_ptr = nullptr;
@ -112,7 +112,7 @@ bool TryParse(const std::string& str, T* output, int base = 0)
}
template <typename T>
requires(detail::IsBooleanEnum<T>())
requires(detail::IsBooleanEnum<T>())
bool TryParse(const std::string& str, T* output)
{
bool value;