modificat cmake amb clang-tidy

This commit is contained in:
2025-12-18 12:21:29 +01:00
parent eb2702eb19
commit f8521d644c
14 changed files with 45 additions and 1092 deletions

View File

@@ -11,9 +11,9 @@ namespace Graphics {
// Inicialització de variables estàtiques
std::unordered_map<std::string, std::shared_ptr<Shape>> ShapeLoader::cache_;
std::string ShapeLoader::base_path_ = "data/shapes/";
std::string ShapeLoader::base_path = "data/shapes/";
std::shared_ptr<Shape> ShapeLoader::load(const std::string& filename) {
static std::shared_ptr<Shape> ShapeLoader::load(const std::string& filename) {
// Check cache first
auto it = cache_.find(filename);
if (it != cache_.end()) {
@@ -66,9 +66,9 @@ void ShapeLoader::clear_cache() {
cache_.clear();
}
size_t ShapeLoader::get_cache_size() { return cache_.size(); }
size_t ShapeLoader::getCacheSize() { return cache_.size(); }
std::string ShapeLoader::resolve_path(const std::string& filename) {
static std::string ShapeLoader::resolvePath(const std::string& filename) {
// Si és un path absolut (comença amb '/'), usar-lo directament
if (!filename.empty() && filename[0] == '/') {
return filename;