Skip to content

Commit

Permalink
feat: Rename files to use snake_case name format
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Jul 17, 2024
1 parent c0d24ce commit 61ebb4f
Show file tree
Hide file tree
Showing 72 changed files with 118 additions and 118 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// class header include
#include "displaydevice/filesettingspersistence.h"
#include "displaydevice/file_settings_persistence.h"

// system includes
#include <algorithm>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "jsonserializerdetails.h"
#include "json_serializer_details.h"

#ifdef DD_JSON_DETAIL
namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <filesystem>

// local includes
#include "settingspersistenceinterface.h"
#include "settings_persistence_interface.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "audiocontextinterface.h"
#include "audio_context_interface.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "settingspersistenceinterface.h"
#include "settings_persistence_interface.h"

namespace display_device {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/common/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/detail/jsonserializer.h"
#include "displaydevice/detail/jsonconverter.h"
#include "displaydevice/detail/json_serializer.h"
#include "displaydevice/detail/json_converter.h"
// clang-format on

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/types.h"
#include "displaydevice/detail/jsonserializer.h"
#include "displaydevice/detail/json_serializer.h"
// clang-format on

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noopaudiocontext.h"
#include "displaydevice/noop_audio_context.h"

namespace display_device {
bool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noopsettingspersistence.h"
#include "displaydevice/noop_settings_persistence.h"

namespace display_device {
bool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/retryscheduler.h"
#include "displaydevice/retry_scheduler.h"

namespace display_device {
SchedulerStopToken::SchedulerStopToken(std::function<void()> cleanup):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "displaydevice/detail/jsonserializer.h"
#include "displaydevice/detail/json_serializer.h"

#ifdef DD_JSON_DETAIL
namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <memory>

// local includes
#include "displaydevice/settingspersistenceinterface.h"
#include "displaydevice/windows/windisplaydeviceinterface.h"
#include "displaydevice/settings_persistence_interface.h"
#include "displaydevice/windows/win_display_device_interface.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#include <memory>

// local includes
#include "displaydevice/audiocontextinterface.h"
#include "displaydevice/settingsmanagerinterface.h"
#include "displaydevice/windows/windisplaydeviceinterface.h"
#include "persistentstate.h"
#include "displaydevice/audio_context_interface.h"
#include "displaydevice/settings_manager_interface.h"
#include "displaydevice/windows/win_display_device_interface.h"
#include "persistent_state.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// local includes
#include "types.h"
#include "windisplaydeviceinterface.h"
#include "win_display_device_interface.h"

/**
* @brief Shared "utility-level" code for Settings.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "winapilayerinterface.h"
#include "win_api_layer_interface.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <set>

// local includes
#include "winapilayerinterface.h"
#include "win_api_layer_interface.h"

/**
* @brief Shared "utility-level" code for Windows.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <memory>

// local includes
#include "winapilayerinterface.h"
#include "windisplaydeviceinterface.h"
#include "win_api_layer_interface.h"
#include "win_display_device_interface.h"

namespace display_device {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/windows/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/windows/detail/jsonserializer.h"
#include "displaydevice/detail/jsonconverter.h"
#include "displaydevice/windows/detail/json_serializer.h"
#include "displaydevice/detail/json_converter.h"
// clang-format on

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/windows/types.h"
#include "displaydevice/windows/detail/jsonserializer.h"
#include "displaydevice/windows/detail/json_serializer.h"
// clang-format on

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/persistentstate.h"
#include "displaydevice/windows/persistent_state.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/noopsettingspersistence.h"
#include "displaydevice/noop_settings_persistence.h"
#include "displaydevice/windows/json.h"

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// class header include
#include "displaydevice/windows/settingsmanager.h"
#include "displaydevice/windows/settings_manager.h"

// system includes
#include <algorithm>
Expand All @@ -8,7 +8,7 @@
// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/json.h"
#include "displaydevice/windows/settingsutils.h"
#include "displaydevice/windows/settings_utils.h"

namespace display_device {
namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/settingsmanager.h"
#include "displaydevice/windows/settings_manager.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/noopaudiocontext.h"
#include "displaydevice/noop_audio_context.h"

namespace display_device {
SettingsManager::SettingsManager(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// class header include
#include "displaydevice/windows/settingsmanager.h"
#include "displaydevice/windows/settings_manager.h"

// system includes
#include <boost/scope/scope_exit.hpp>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/json.h"
#include "displaydevice/windows/settingsutils.h"
#include "displaydevice/windows/settings_utils.h"

namespace display_device {
namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/windows/settingsutils.h"
#include "displaydevice/windows/settings_utils.h"

// system includes
#include <algorithm>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// class header include
#include "displaydevice/windows/winapilayer.h"
#include "displaydevice/windows/win_api_layer.h"

// system includes
#include <boost/algorithm/string.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

// system includes
#include <unordered_set>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/windisplaydevice.h"
#include "displaydevice/windows/win_display_device.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

namespace display_device {
WinDisplayDevice::WinDisplayDevice(std::shared_ptr<WinApiLayerInterface> w_api):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// class header include
#include "displaydevice/windows/windisplaydevice.h"
#include "displaydevice/windows/win_display_device.h"

// system includes
#include <ranges>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

namespace display_device {
namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// class header include
#include "displaydevice/windows/windisplaydevice.h"
#include "displaydevice/windows/win_display_device.h"

// system includes
#include <ranges>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

namespace display_device {
namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/windisplaydevice.h"
#include "displaydevice/windows/win_display_device.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

namespace display_device {
bool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// class header include
#include "displaydevice/windows/windisplaydevice.h"
#include "displaydevice/windows/win_display_device.h"

// system includes
#include <algorithm>
#include <unordered_set>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/winapiutils.h"
#include "displaydevice/windows/win_api_utils.h"

namespace display_device {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/include/fixtures/fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// local includes
#include "displaydevice/logging.h"
#include "testutils.h"
#include "test_utils.h"

// Undefine the original TEST macro
#undef TEST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <gmock/gmock.h>

// local includes
#include "displaydevice/audiocontextinterface.h"
#include "displaydevice/audio_context_interface.h"

namespace display_device {
class MockAudioContext: public AudioContextInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <gmock/gmock.h>

// local includes
#include "displaydevice/settingspersistenceinterface.h"
#include "displaydevice/settings_persistence_interface.h"

namespace display_device {
class MockSettingsPersistence: public SettingsPersistenceInterface {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "fixtures/testutils.h"
#include "fixtures/test_utils.h"

// system includes
#include <cstdlib>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <gmock/gmock.h>

// local includes
#include "displaydevice/filesettingspersistence.h"
#include "displaydevice/file_settings_persistence.h"
#include "fixtures/fixtures.h"

namespace {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/general/test_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/json.h"
#include "displaydevice/detail/jsonserializer.h"
#include "displaydevice/detail/jsonconverter.h"
#include "displaydevice/detail/json_serializer.h"
#include "displaydevice/detail/json_converter.h"
// clang-format on

// local includes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "fixtures/jsonconvertertest.h"
#include "fixtures/json_converter_test.h"

namespace {
// Specialized TEST macro(s) for this test file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noopaudiocontext.h"
#include "displaydevice/noop_audio_context.h"
#include "fixtures/fixtures.h"

namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noopsettingspersistence.h"
#include "displaydevice/noop_settings_persistence.h"
#include "fixtures/fixtures.h"

namespace {
Expand Down
Loading

0 comments on commit 61ebb4f

Please sign in to comment.