summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.h
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2025-04-23 11:19:14 +0200
committerJoshua Vandaƫle <joshua@vandaele.software>2025-04-23 11:19:57 +0200
commitbf554edfe0b543b08c42401b78fea2ae0ffa1168 (patch)
treef8fac4821872a272c4d1c0af9f6709acf05db491 /Source/Core/Common/StringUtil.h
parent2c54ee94c1bed2b958478e302307be4d056321a5 (diff)
linter: Add and apply new formatting rules
New rules: `InsertNewlineAtEOF: true` `RemoveSemicolon: true` `RequiresClausePosition: WithPreceding`
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
-rw-r--r--Source/Core/Common/StringUtil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h
index 621ec2188e..617aee16bc 100644
--- a/Source/Core/Common/StringUtil.h
+++ b/Source/Core/Common/StringUtil.h
@@ -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;