chore: update formatting due to updated clang-format version

This commit is contained in:
Jan
2025-06-28 11:09:03 +01:00
parent 8542675d02
commit 2176480a37
5 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ public:
[[nodiscard]] virtual std::optional<asset_type_t> GetHandlingAssetType() const = 0;
virtual AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) = 0;
virtual void FinalizeZone(AssetCreationContext& context){};
virtual void FinalizeZone(AssetCreationContext& context) {};
};
template<typename AssetType> class AssetCreator : public IAssetCreator

View File

@ -25,5 +25,5 @@ public:
[[nodiscard]] virtual asset_type_t GetHandlingAssetType() const = 0;
virtual void PostProcessAsset(XAssetInfoGeneric& assetInfo, AssetCreationContext& context) = 0;
virtual void FinalizeZone(AssetCreationContext& context){};
virtual void FinalizeZone(AssetCreationContext& context) {};
};

View File

@ -28,7 +28,7 @@ namespace tangent_space
void SetVec3(void* dest, const size_t index, const size_t stride, const tvec3& data)
{
auto* out = reinterpret_cast<float(*)[3]>(static_cast<char*>(dest) + stride * index);
auto* out = reinterpret_cast<float (*)[3]>(static_cast<char*>(dest) + stride * index);
(*out)[0] = data[0];
(*out)[1] = data[1];
(*out)[2] = data[2];

View File

@ -49,7 +49,7 @@ DefinesStreamProxy::DefineParameterPosition::DefineParameterPosition(const unsig
}
DefinesStreamProxy::Define::Define()
: m_contains_token_pasting_operators(false){};
: m_contains_token_pasting_operators(false) {};
DefinesStreamProxy::Define::Define(std::string name, std::string value)
: m_name(std::move(name)),

View File

@ -89,7 +89,7 @@ public:
std::vector<scr_string_t> usedScriptStrings,
std::vector<IndirectAssetReference> indirectAssetReferences)
: XAssetInfoGeneric(
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences))
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences))
{
}
@ -101,7 +101,7 @@ public:
std::vector<IndirectAssetReference> indirectAssetReferences,
Zone* zone)
: XAssetInfoGeneric(
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences), zone)
type, std::move(name), static_cast<void*>(ptr), std::move(dependencies), std::move(usedScriptStrings), std::move(indirectAssetReferences), zone)
{
}