Add end-of-line spaces checker

This commit is contained in:
SirLynix
2024-01-26 10:43:00 +01:00
parent 63c61c0827
commit 6757de1be8
90 changed files with 170 additions and 126 deletions

View File

@@ -64,7 +64,7 @@ namespace Nz
return static_cast<T&>(*m_components[componentIndex]);
}
template<typename T>
const T& ApplicationBase::GetComponent() const
{

View File

@@ -26,7 +26,7 @@ namespace Nz
ApplicationUpdater& operator=(const ApplicationUpdater&) = delete;
ApplicationUpdater& operator=(ApplicationUpdater&&) = delete;
};
template<typename F>
class ApplicationUpdaterFunctor : public ApplicationUpdater
{

View File

@@ -312,7 +312,7 @@ namespace Nz
{
return Color(r / 255.f, g / 255.f, b / 255.f);
}
/*!
* \brief Converts RGBA8 representation to Color (RGBA32F)
* \return Color resulting

View File

@@ -37,7 +37,7 @@ namespace Nz
inline /*constexpr*/ Result<OpenModeFlags, std::string> File::DecodeOpenMode(std::string_view openModeStr)
{
OpenModeFlags openModes = 0;
if (openModeStr.find('r') != std::string_view::npos)
{
openModes |= OpenMode::Read;

View File

@@ -56,7 +56,7 @@ namespace Nz
return OverrideModuleConfig(T{}, parameters);
}
};
template<typename Module, typename... Modules>
template<typename... ModuleConfig>
ModuleTuple<Module, Modules...>::ModuleTuple(const CommandLineParameters& parameters, ModuleConfig&&... configs) :
@@ -97,7 +97,7 @@ namespace Nz
m_modules(CommandLineParameters{}, std::forward<ModuleConfig>(configs)...)
{
}
template<typename... ModuleList>
template<typename... ModuleConfig>
Modules<ModuleList...>::Modules(const CommandLineParameters& parameters, ModuleConfig&&... configs) :

View File

@@ -25,7 +25,7 @@ namespace Nz
{
HandleInner<EndOfStream>(std::forward<Args>(args)...);
}
template<typename EndToken, typename... Args>
void ParameterFile::HandleInner(Args&&... args)
{
@@ -113,7 +113,7 @@ namespace Nz
keyValue.handler = BuildBlockHandler(keyValues, std::forward<Rest>(rest)...);
}
}
template<typename V, typename... Rest>
auto ParameterFile::GetSingleHandler(V&& value, Rest&&... rest) -> ValueHandler
{

View File

@@ -180,7 +180,7 @@ namespace Nz
return true;
}
/*!
* \ingroup math
* \brief Converts the string to number

View File

@@ -75,7 +75,7 @@ namespace Nz
});
}
}
template<typename F>
bool VirtualDirectory::GetDirectoryEntry(std::string_view path, F&& callback)
{
@@ -260,7 +260,7 @@ namespace Nz
{
return m_isUprootAllowed;
}
inline auto VirtualDirectory::StoreDirectory(std::string_view path, std::shared_ptr<VirtualDirectoryResolver> resolver) -> DirectoryEntry&
{
assert(!path.empty());
@@ -318,7 +318,7 @@ namespace Nz
{
return StoreFile(path, std::make_shared<MemoryView>(data, size));
}
template<typename F> bool VirtualDirectory::GetEntryInternal(std::string_view name, bool allowResolve, F&& callback)
{
if (name == ".")