diff --git a/CMakeLists.txt b/CMakeLists.txt index 618a587..cd652d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,13 +28,13 @@ add_library( forfun SHARED "include/forfun/fizzbuzz.hpp" - "include/forfun/lc_lru_cache.hpp" + "include/forfun/lru_cache.hpp" "include/forfun/palindrome.hpp" "include/forfun/palindromic_number.hpp" "include/forfun/project_euler/p0001_multiples_of_3_or_5.hpp" "include/forfun/sonar.hpp" "src/fizzbuzz.cpp" - "src/lc_lru_cache.cpp" + "src/lru_cache.cpp" "src/palindrome.cpp" "src/palindromic_number.cpp" "src/project_euler/p0001_multiples_of_3_or_5.cpp" @@ -70,8 +70,8 @@ add_executable( ) add_executable( - lc_lru_cache - "test/lc_lru_cache.cpp" + lru_cache + "test/lru_cache.cpp" ) add_executable( @@ -112,7 +112,7 @@ find_package(nanobench CONFIG REQUIRED) add_executable( benchmark "benchmark/benchmark.cpp" - "benchmark/lc_lru_cache_benchmark.cpp" + "benchmark/lru_cache_benchmark.cpp" "benchmark/palindrome_benchmark.cpp" ) target_link_libraries( diff --git a/benchmark/lc_lru_cache_benchmark.cpp b/benchmark/lru_cache_benchmark.cpp similarity index 98% rename from benchmark/lc_lru_cache_benchmark.cpp rename to benchmark/lru_cache_benchmark.cpp index 7177e0b..6a7521e 100644 --- a/benchmark/lc_lru_cache_benchmark.cpp +++ b/benchmark/lru_cache_benchmark.cpp @@ -12,7 +12,7 @@ #include -#include "forfun/lc_lru_cache.hpp" +#include "forfun/lru_cache.hpp" template std::enable_if_t, void> diff --git a/include/forfun/lc_lru_cache.hpp b/include/forfun/lru_cache.hpp similarity index 94% rename from include/forfun/lc_lru_cache.hpp rename to include/forfun/lru_cache.hpp index bb78f2e..fba6674 100644 --- a/include/forfun/lc_lru_cache.hpp +++ b/include/forfun/lru_cache.hpp @@ -2,8 +2,8 @@ /// https://simontoth.substack.com/p/daily-bite-of-c-lru-cache /// https://leetcode.com/problems/lru-cache/ -#ifndef FORFUN_LC_LRU_CACHE_HPP_ -#define FORFUN_LC_LRU_CACHE_HPP_ +#ifndef FORFUN_LRU_CACHE_HPP_ +#define FORFUN_LRU_CACHE_HPP_ #include #include @@ -77,4 +77,4 @@ class LRUCache final : public LRUCacheBase { } // namespace forfun::lrucache -#endif // FORFUN_LC_LRU_CACHE_HPP_ +#endif // FORFUN_LRU_CACHE_HPP_ diff --git a/src/lc_lru_cache.cpp b/src/lru_cache.cpp similarity index 98% rename from src/lc_lru_cache.cpp rename to src/lru_cache.cpp index 0532625..72bbc92 100644 --- a/src/lc_lru_cache.cpp +++ b/src/lru_cache.cpp @@ -4,7 +4,7 @@ // SPDX-License-Identifier: MIT -#include "forfun/lc_lru_cache.hpp" +#include "forfun/lru_cache.hpp" #include diff --git a/test/lc_lru_cache.cpp b/test/lru_cache.cpp similarity index 98% rename from test/lc_lru_cache.cpp rename to test/lru_cache.cpp index c0af23a..35b8764 100644 --- a/test/lc_lru_cache.cpp +++ b/test/lru_cache.cpp @@ -4,7 +4,7 @@ // SPDX-License-Identifier: MIT -#include "forfun/lc_lru_cache.hpp" +#include "forfun/lru_cache.hpp" #include