mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-28 05:52:38 +00:00
linter: Add and apply new formatting rules
New rules: `InsertNewlineAtEOF: true` `RemoveSemicolon: true` `RequiresClausePosition: WithPreceding`
This commit is contained in:
parent
2c54ee94c1
commit
bf554edfe0
9 changed files with 20 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue