change clang-format
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
0496ea7259
commit
910f337d02
33 changed files with 217 additions and 254 deletions
|
|
@ -16,11 +16,11 @@ struct IkarusFunctionContext {
|
|||
public:
|
||||
explicit IkarusFunctionContext(struct IkarusProject * project);
|
||||
|
||||
IkarusFunctionContext(IkarusFunctionContext const&) noexcept = default;
|
||||
IkarusFunctionContext(IkarusFunctionContext&&) noexcept = default;
|
||||
IkarusFunctionContext(IkarusFunctionContext const &) noexcept = default;
|
||||
IkarusFunctionContext(IkarusFunctionContext &&) noexcept = default;
|
||||
|
||||
auto operator=(IkarusFunctionContext const&) noexcept -> IkarusFunctionContext& = default;
|
||||
auto operator=(IkarusFunctionContext&&) noexcept -> IkarusFunctionContext& = default;
|
||||
auto operator=(IkarusFunctionContext const &) noexcept -> IkarusFunctionContext & = default;
|
||||
auto operator=(IkarusFunctionContext &&) noexcept -> IkarusFunctionContext & = default;
|
||||
|
||||
~IkarusFunctionContext();
|
||||
|
||||
|
|
@ -40,11 +40,7 @@ public:
|
|||
_project->error_infos = {infos...};
|
||||
|
||||
if (log_error) {
|
||||
LOG_ERROR(
|
||||
"Error({}): {}",
|
||||
fmt::join(_project->error_infos | std::views::transform(get_error_info_name), ", "),
|
||||
error_message
|
||||
);
|
||||
LOG_ERROR("Error({}): {}", fmt::join(_project->error_infos | std::views::transform(get_error_info_name), ", "), error_message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ auto IkarusProject::get_name() const -> std::string_view {
|
|||
return _name;
|
||||
}
|
||||
|
||||
auto IkarusProject::get_path() const -> std::filesystem::path const& {
|
||||
auto IkarusProject::get_path() const -> std::filesystem::path const & {
|
||||
return _path;
|
||||
}
|
||||
|
||||
|
|
@ -55,8 +55,7 @@ auto IkarusProject::get_property(IkarusId id, IkarusPropertyType type) -> Ikarus
|
|||
return _properties.emplace(id, std::make_unique<IkarusToggleProperty>(this, id)).first->second.get();
|
||||
case IkarusPropertyType_Number:
|
||||
return _properties.emplace(id, std::make_unique<IkarusNumberProperty>(this, id)).first->second.get();
|
||||
case IkarusPropertyType_Text:
|
||||
return _properties.emplace(id, std::make_unique<IkarusTextProperty>(this, id)).first->second.get();
|
||||
case IkarusPropertyType_Text: return _properties.emplace(id, std::make_unique<IkarusTextProperty>(this, id)).first->second.get();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ struct IkarusProject {
|
|||
public:
|
||||
[[nodiscard]] auto get_name() const -> std::string_view;
|
||||
|
||||
[[nodiscard]] auto get_path() const -> std::filesystem::path const&;
|
||||
[[nodiscard]] auto get_path() const -> std::filesystem::path const &;
|
||||
|
||||
[[nodiscard]] auto get_db() -> sqlitecpp::Connection *;
|
||||
[[nodiscard]] auto get_db() const -> sqlitecpp::Connection const *;
|
||||
|
|
@ -38,7 +38,7 @@ public:
|
|||
|
||||
private:
|
||||
template<typename T>
|
||||
[[nodiscard]] T * get_cached_object(IkarusId id, auto& cache) {
|
||||
[[nodiscard]] T * get_cached_object(IkarusId id, auto & cache) {
|
||||
auto const iter = cache.find(id);
|
||||
|
||||
if (iter == cache.cend()) {
|
||||
|
|
@ -49,7 +49,7 @@ private:
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
void remove_cached_object(T * object, std::unordered_map<IkarusId, std::unique_ptr<T>>& cache) {
|
||||
void remove_cached_object(T * object, std::unordered_map<IkarusId, std::unique_ptr<T>> & cache) {
|
||||
cache.erase(object->id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue