Skip to content

Commit

Permalink
refactor: Rename LRU cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Jul 18, 2023
1 parent 1ccdd51 commit 3ddd351
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -70,8 +70,8 @@ add_executable(
)

add_executable(
lc_lru_cache
"test/lc_lru_cache.cpp"
lru_cache
"test/lru_cache.cpp"
)

add_executable(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <fmt/format.h>

#include "forfun/lc_lru_cache.hpp"
#include "forfun/lru_cache.hpp"

template <typename T>
std::enable_if_t<std::is_base_of_v<forfun::lrucache::LRUCacheBase, T>, void>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cassert>
#include <cstdint>
Expand Down Expand Up @@ -77,4 +77,4 @@ class LRUCache final : public LRUCacheBase {

} // namespace forfun::lrucache

#endif // FORFUN_LC_LRU_CACHE_HPP_
#endif // FORFUN_LRU_CACHE_HPP_
2 changes: 1 addition & 1 deletion src/lc_lru_cache.cpp → src/lru_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// SPDX-License-Identifier: MIT

#include "forfun/lc_lru_cache.hpp"
#include "forfun/lru_cache.hpp"

#include <cassert>

Expand Down
2 changes: 1 addition & 1 deletion test/lc_lru_cache.cpp → test/lru_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// SPDX-License-Identifier: MIT

#include "forfun/lc_lru_cache.hpp"
#include "forfun/lru_cache.hpp"

#include <cassert>

Expand Down

0 comments on commit 3ddd351

Please sign in to comment.